Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8124 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44887 invoked by uid 1010); 25 Feb 2004 19:53:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44863 invoked from network); 25 Feb 2004 19:53:42 -0000 Received: from unknown (HELO smtp2.pp.htv.fi) (213.243.153.14) by pb1.pair.com with SMTP; 25 Feb 2004 19:53:42 -0000 Received: from localhost.localdomain (cs181008.pp.htv.fi [213.243.181.8]) by smtp2.pp.htv.fi (Postfix) with ESMTP id CCFAF297B64; Wed, 25 Feb 2004 21:53:41 +0200 (EET) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.10/8.12.10) with ESMTP id i1PJrfpn008981; Wed, 25 Feb 2004 21:53:41 +0200 Date: Wed, 25 Feb 2004 21:53:41 +0200 (EET) Reply-To: Jani Taskinen To: Andi Gutmans Cc: Pierre-Alain Joye , internals@lists.php.net In-Reply-To: <5.1.0.14.2.20040225192501.02c440a0@127.0.0.1> Message-ID: References: <00b501c3f558$73f8d3c0$f7dea8c0@cyberware.local> <00b501c3f558$73f8d3c0$f7dea8c0@cyberware.local> <5.1.0.14.2.20040225192501.02c440a0@127.0.0.1> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] segfault with iterators From: sniper@iki.fi (Jani Taskinen) 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: >>-------- >>>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"; >>} >> >>?> > >