Re: [PHP-DEV] segfault with iterators

2004-02-26 Thread Pierre-Alain Joye
On Wed, 25 Feb 2004 21:56:08 +0200 [EMAIL PROTECTED] (Andi Gutmans) wrote: > 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. Here it is. I put it in tests/lang/foreach_with_new_object_001.phpt hth pierre -- PHP Inter

Re: [PHP-DEV] segfault with iterators

2004-02-26 Thread Pierre-Alain Joye
On Thu, 26 Feb 2004 14:02:38 +0100 [EMAIL PROTECTED] (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-- c()->a as $value) { print "$value\n"; } --EXPECT-- 1 2 3 4 5

Re: [PHP-DEV] segfault with iterators

2004-02-25 Thread Andi Gutmans
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

Re: [PHP-DEV] segfault with iterators

2004-02-25 Thread 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: >

Re: [PHP-DEV] segfault with iterators

2004-02-25 Thread 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: } $obj = new Test(); foreach ($obj->c()->a as $value) { // Segafults print "Test\n"; } ?> -- PHP Internals - PHP Runtime Development Mailing List To unsubscri

Re: [PHP-DEV] segfault with iterators

2004-02-17 Thread Pierre-Alain Joye
Hello, On Tue, 17 Feb 2004 08:17:54 -0500 "Rob Richards" <[EMAIL PROTECTED]> wrote: > I ran into this with simplexml but am able to reproduce with userland > classes. > > The segfault only occurs when the property in question does not exist, > no __get and __set methods implemented (if either is