Re: segfault with iterators

From: Date: Wed, 25 Feb 2004 19:53:41 +0000
Subject: Re: segfault with iterators
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-8124@lists.php.net to get a copy of this message
Was there a test for this..? Would be nice if Pierre/Andi would add one if not. :) --Jani On Wed, 25 Feb 2004, Andi Gutmans wrote: >This should be fixed now. >Thanks for the reproducing case. > >Andi > >At 20:20 17/02/2004 +0100, Pierre-Alain Joye wrote: >>Segfault: >>-------- >><?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) { // Segafults >> print "Test\n"; >>} >> >>?> > >

« previous php.internals (#8124) next »