Re: segfault with iterators

From: Date: Wed, 25 Feb 2004 19:56:08 +0000
Subject: Re: segfault with iterators
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-8125@lists.php.net to get a copy of this message
Nope. I don't have time to add one right now... Pierre got time? :) If not I'll try and do it within the next few days. Andi At 21:53 25/02/2004 +0200, Jani Taskinen wrote:
     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 (#8125) next »