Debian Bug report logs - #500679
php5: PHP Bug #35106 nested foreach fails when array variable has a reference

version graph

Package: php5; Maintainer for php5 is (unknown);

Reported by: Oliver Heinz <oliver.heinz@schunk.net>

Date: Tue, 30 Sep 2008 11:09:04 UTC

Severity: normal

Found in version php5/5.2.0-8+etch11

Fixed in version 5.2.6.dfsg.1-1+lenny4

Done: Ondřej Surý <ondrej@sury.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, oliver.heinz@schunk.net, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#500679; Package php5. (Tue, 30 Sep 2008 11:09:06 GMT) (full text, mbox, link).


Acknowledgement sent to Oliver Heinz <oliver.heinz@schunk.net>:
New Bug report received and forwarded. Copy sent to oliver.heinz@schunk.net, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Tue, 30 Sep 2008 11:09:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Oliver Heinz <oliver.heinz@schunk.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5: PHP Bug #35106 nested foreach fails when array variable has a reference
Date: Tue, 30 Sep 2008 13:07:09 +0200
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@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#500679; Package php5. (Wed, 01 Oct 2008 06:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to sean finney <seanius@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Wed, 01 Oct 2008 06:39:04 GMT) (full text, mbox, link).


Message #10 received at 500679@bugs.debian.org (full text, mbox, reply):

From: sean finney <seanius@debian.org>
To: Oliver Heinz <oliver.heinz@schunk.net>, 500679@bugs.debian.org
Subject: Re: [php-maint] Bug#500679: php5: PHP Bug #35106 nested foreach fails when array variable has a reference
Date: Wed, 1 Oct 2008 08:35:04 +0200
[Message part 1 (text/plain, inline)]
hi oliver,

could you take a look at #440634 and #499031 to determine if this is
the issue you are having?  otherwise we need example code and ideally
a link to an upstream bug report (and *ideally* also a patch...)


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@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
> 
> 
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
> 

-- 
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#500679; Package php5. (Sat, 04 Oct 2008 20:36:05 GMT) (full text, mbox, link).


Acknowledgement sent to Oliver Heinz <oliver.heinz@schunk.net>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sat, 04 Oct 2008 20:36:05 GMT) (full text, mbox, link).


Message #15 received at 500679@bugs.debian.org (full text, mbox, reply):

From: Oliver Heinz <oliver.heinz@schunk.net>
To: sean finney <seanius@debian.org>
Cc: 500679@bugs.debian.org
Subject: Re: [php-maint] Bug#500679: php5: PHP Bug #35106 nested foreach fails when array variable has a reference
Date: Sat, 4 Oct 2008 22:34:07 +0200
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@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
> >
> >
> >
> > _______________________________________________
> > pkg-php-maint mailing list
> > pkg-php-maint@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




Reply sent to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility. (Fri, 08 Jan 2010 16:36:09 GMT) (full text, mbox, link).


Notification sent to Oliver Heinz <oliver.heinz@schunk.net>:
Bug acknowledged by developer. (Fri, 08 Jan 2010 16:36:09 GMT) (full text, mbox, link).


Message #20 received at 500679-done@bugs.debian.org (full text, mbox, reply):

From: Ondřej Surý <ondrej@sury.org>
To: 500679-done@bugs.debian.org
Subject: #500679: php5: PHP Bug #35106 nested foreach fails when array variable has a reference
Date: Fri, 8 Jan 2010 17:32:01 +0100
Version: 5.2.6.dfsg.1-1+lenny4

> The bug was solved in upstream 5.2.1.

-- 
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 06 Feb 2010 07:35:11 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 03:06:21 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.