|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-09 14:49 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 22:00:01 2025 UTC |
Description: ------------ OS: CENT OS PHP VERSION: 5.05 Zend Optimizer: 2.6.2 This line: foreach($GLOBALS as $key => $val){ ..... } When this piece of code is optimized/compiled with Zend produces this error: "Warning: Invalid argument supplied for foreach() in... " Not optimized works without any problems ? another bug like php 4.3.10 ? Reproduce code: --------------- foreach($GLOBALS as $key => $val){ ..... } Expected result: ---------------- see values Actual result: -------------- "Warning: Invalid argument supplied for foreach() in... "