Segfault in Reflection

php.internals

Andrey Hristov

22 years ago
Hi, this : php -r 'class a{function a(){}} $a=new Reflection_Class("a");$b=$a->getMethod("a"); $b->invoke(NULL);' segfaults on my machine and generates bus error on Jan Lehnardt's machine. Andrey

Andi Gutmans

22 years ago
Did this happen after my commit or is it a general problem? Andi At 02:03 PM 3/1/2004 +0100, Andrey Hristov wrote:

Andrey Hristov

22 years ago
Andi Gutmans wrote:
> Did this happen after my commit or is it a general problem? > > Andi > > At 02:03 PM 3/1/2004 +0100, Andrey Hristov wrote: > >> Hi, >> this : >> php -r 'class a{function a(){}} $a=new >> Reflection_Class("a");$b=$a->getMethod("a"); $b->invoke(NULL);' >> >> segfaults on my machine and generates bus error on Jan Lehnardt's >> machine. >> >> Andrey >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php > >
It's old. My build is dated 3 weeks. Jan's build is up-to-date. Andrey

Andrey Hristov

22 years ago
Andi Gutmans wrote:
> Did this happen after my commit or is it a general problem? > > Andi > > At 02:03 PM 3/1/2004 +0100, Andrey Hristov wrote: > >> Hi, >> this : >> php -r 'class a{function a(){}} $a=new >> Reflection_Class("a");$b=$a->getMethod("a"); $b->invoke(NULL);' >> >> segfaults on my machine and generates bus error on Jan Lehnardt's >> machine. >> >> Andrey >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php > >
It's old. My build is dated 3 weeks. Jan's build is up-to-date. Andrey

Andi Gutmans

22 years ago
At 02:22 PM 3/1/2004 +0100, Andrey Hristov wrote:
>Andi Gutmans wrote: >>Did this happen after my commit or is it a general problem? >>Andi >>At 02:03 PM 3/1/2004 +0100, Andrey Hristov wrote: >> >>> Hi, >>>this : >>>php -r 'class a{function a(){}} $a=new >>>Reflection_Class("a");$b=$a->getMethod("a"); $b->invoke(NULL);' >>> >>>segfaults on my machine and generates bus error on Jan Lehnardt's machine. >>> >>>Andrey >>> >>>-- >>>PHP Internals - PHP Runtime Development Mailing List >>>To unsubscribe, visit: http://www.php.net/unsub.php > >It's old. My build is dated 3 weeks. Jan's build is up-to-date.
Pierre and I very likely found the problem. It's in the reflection API and not in the engine. There should be a fix soon. Andi