#34752 [Opn->Bgs]: foreach seam to overwrite values

From: Date: Mon, 31 Oct 2005 13:01:29 +0000
Subject: #34752 [Opn->Bgs]: foreach seam to overwrite values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87260@lists.php.net to get a copy of this message
ID: 34752 Updated by: derick@php.net Reported By: trash at jennyfm dot net -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: linux 2.6.13 PHP Version: 5.0.5 New Comment: Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. Report those bugs with the Zend team. Previous Comments: ------------------------------------------------------------------------ [2005-10-31 13:55:55] trash at jennyfm dot net the problem caused of Zend Optimizer v2.5.10, in 2.5.8 it works fine. ------------------------------------------------------------------------ [2005-10-14 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-10-06 15:36:32] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip ------------------------------------------------------------------------ [2005-10-06 15:35:31] trash at jennyfm dot net right.... this is my result. http://wp1011644.wp021.webpack.hosteurope.de/muellercms/buii.php ------------------------------------------------------------------------ [2005-10-06 15:33:30] tony2001@php.net "Returns wrong" ? What's the expected result, what's the actual result you get? This is what I got with 5.0.6-dev: Array ( [0] => Test Object ( [blc:protected] => [bl:protected] => ) [1] => Test Object ( [blc:protected] => [bl:protected] => ) ) Array ( [0] => Test Object ( [blc:protected] => [bl:protected] => ) [1] => Test Object ( [blc:protected] => [bl:protected] => ) ) Is this "wrong" or "right" ? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34752 -- Edit this bug report at http://bugs.php.net/?id=34752&edit=1

« previous php.bugs (#87260) next »