[php-maint] Bug#500679: Bug#500679: php5: PHP Bug #35106 nested foreach fails when array variable has a reference
Oliver Heinz
oliver.heinz at schunk.net
Sat Oct 4 20:34:07 UTC 2008
On Wednesday 01 October 2008 08:35:04 sean finney wrote:
> hi oliver,
>
> could you take a look at #440634 and #499031 to determine if this is
> the issue you are having?
All those bugs belong to different php5-bugs filed upstream, none of them is
marked a duplicate. I cannot determine if they have a common cause.
> otherwise we need example code and ideally
> a link to an upstream bug report (and *ideally* also a patch...)
The upstream bugreport is:
http://bugs.php.net/bug.php?id=35106
Reproduce code:
---------------
<?
$a=array("1","2");
$b=&$a;//*
foreach($a as $i){
print($i);
foreach($a as $p);//*
}
?>
Expected result:
----------------
12
Actual result:
--------------
1
But I could not find the corresponding cvs commit :-(
TIA,
Oliver
>
>
> BR
> sean
>
> On Tue, Sep 30, 2008 at 01:07:09PM +0200, Oliver Heinz wrote:
> > Package: php5
> > Version: 5.2.0-8+etch11
> > Severity: normal
> >
> > The bug was solved in upstream 5.2.1. It would be nice if it could be
> > fixed in Etch's 5.2.0 package as it causes problems with often with
> > smarty driven applications (but not only with these as this is a general
> > bug).
> >
> > -- System Information:
> > Debian Release: 4.0
> > APT prefers stable
> > APT policy: (500, 'stable')
> > Architecture: amd64 (x86_64)
> > Shell: /bin/sh linked to /bin/bash
> > Kernel: Linux 2.6.22.19-grsec2.1.11-vs2.2.0.7
> > Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)
> >
> >
> >
> > _______________________________________________
> > pkg-php-maint mailing list
> > pkg-php-maint at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
--
Oliver Heinz
B.Sc. Informatik
Linux System and Network Consultant
schunk edv systeme gmbh
Stehnweg 2
63500 Seligenstadt
Tel: 06182-8248-0
Fax: 06182-8248-199
Geschaeftsfuehrer: Thorsten Schunk
Firmensitz: 63500 Seligenstadt
Registergericht: Amtsgericht Offenbach am Main
Handelsregister: HRB 23481
More information about the pkg-php-maint
mailing list