|
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-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 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.