#31251 [Opn->Bgs]: Bad problems with backported foreach() patch

From: Date: Wed, 22 Dec 2004 17:23:02 +0000
Subject: #31251 [Opn->Bgs]: Bad problems with backported foreach() patch
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70922@lists.php.net to get a copy of this message
ID: 31251 Updated by: tony2001@php.net Reported By: giovanni at giacobbi dot net -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 4.3.10 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. Previous Comments: ------------------------------------------------------------------------ [2004-12-22 17:47:14] giovanni at giacobbi dot net Description: ------------ I've been a PHP developer for years and I don't remember such a big bug introduced in a stable production release. The foreach() patch backported from PHP5 broke down many sites that I run and which use proprietary optimizers. You should definitely remember what "stable" and "production" words mean, and keep fun for PHP5. P.S.: The bug is indeed in the optimizer, but this doesn't allow you to make these kind of changes. Reproduce code: --------------- this is just explanative, the bug can be shown only with the proprietary optimizer. $a = array(array("a", "b"), array("a", "b")); foreach ($a as $ax) { var_dump($a); } Expected result: ---------------- obvious. Actual result: -------------- scratched array. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31251&edit=1

« previous php.bugs (#70922) next »