Re: segfault with iterators

From: Date: Thu, 26 Feb 2004 13:04:05 +0000
Subject: Re: segfault with iterators
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-8173@lists.php.net to get a copy of this message
On Thu, 26 Feb 2004 14:02:38 +0100 paj@pearfr.org (Pierre-Alain Joye) wrote: > Here it is. > > I put it in tests/lang/foreach_with_new_object_001.phpt take #2, .txt :)

--TEST-- foreach() with foreach($o->mthd()->arr) --FILE-- <?php class Test { public $a = array(1,2,3,4,5); // removed, crash too function c() { return new Test(); } } $obj = new Test(); foreach ($obj->c()->a as $value) { print "$value\n"; } --EXPECT-- 1 2 3 4 5
« previous php.internals (#8173) next »