ID: 49269 Updated by: col...@php.net Reported By: president at basnetworks dot net -Status: Assigned +Status: Closed Bug Type: Class/Object related Operating System: All PHP Version: 5.3.0 Assigned To: colder New Comment:
This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-08-17 07:41:22] s...@php.net Automatic comment from SVN on behalf of dmitry Revision: http://svn.php.net/viewvc/?view=revision&revision=287398 Log: Fixed bug #49269 (Ternary operator fails on Iterator object when used inside foreach declaration). (Etienne, Dmitry) ------------------------------------------------------------------------ [2009-08-17 07:40:44] s...@php.net Automatic comment from SVN on behalf of dmitry Revision: http://svn.php.net/viewvc/?view=revision&revision=287397 Log: Fixed bug #49269 (Ternary operator fails on Iterator object when used inside foreach declaration). (Etienne, Dmitry) ------------------------------------------------------------------------ [2009-08-17 07:40:19] s...@php.net Automatic comment from SVN on behalf of dmitry Revision: http://svn.php.net/viewvc/?view=revision&revision=287396 Log: Fixed bug #49269 (Ternary operator fails on Iterator object when used inside foreach declaration). (Etienne, Dmitry) ------------------------------------------------------------------------ [2009-08-17 00:49:28] col...@php.net http://patches.colder.ch/Zend/bug49269.patch?markup This should fix it, and passes all the Zend tests, but as it may affect some untested edge cases out there, further checking is required. ------------------------------------------------------------------------ [2009-08-16 17:21:46] president at basnetworks dot net sjoerd-php at linuxonly dot nl, Your code sample is much clearer, and seems to narrow it down to the ternary operator mis-behaving. Thanks for the added clarification, I will update the report. You should also "vote" that you reproduced the bug above. ------------------------------------------------------------------------ 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/49269 -- Edit this bug report at http://bugs.php.net/?id=49269&edit=1