|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-03 09:12 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 08 17:00:01 2026 UTC |
Description: ------------ The foreach construct destroys the object, leaving the variable in a strange state. class A {} foreach(($a = new A) as $v); var_dump($a); // UNKNOWN:0 echo $a; // segfaults This was spotted by Zuu on ##php@freenode.