Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8122 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77972 invoked by uid 1010); 25 Feb 2004 17:25:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77836 invoked from network); 25 Feb 2004 17:25:48 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 25 Feb 2004 17:25:48 -0000 Received: (qmail 21829 invoked from network); 25 Feb 2004 17:25:45 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by mail.zend.com with SMTP; 25 Feb 2004 17:25:45 -0000 Message-ID: <5.1.0.14.2.20040225192501.02c440a0@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 25 Feb 2004 19:25:16 +0200 To: Pierre-Alain Joye ,internals@lists.php.net In-Reply-To: <20040217202007.73e8a390@localhost.localdomain> References: <00b501c3f558$73f8d3c0$f7dea8c0@cyberware.local> <00b501c3f558$73f8d3c0$f7dea8c0@cyberware.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] segfault with iterators From: andi@zend.com (Andi Gutmans) 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"; >} > >?>