|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-22 18:23 UTC] tony2001@php.net
[2004-12-22 18:23 UTC] derick@php.net
[2004-12-22 18:30 UTC] iliaa@php.net
[2004-12-22 18:46 UTC] giovanni at giacobbi dot net
[2004-12-22 19:07 UTC] derick@php.net
[2004-12-22 19:48 UTC] giovanni at giacobbi dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 23 11:00:02 2025 UTC |
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.