Re: [PHP-DEV] Bug #496: using variable by reference in object functions sometimes crashes PHP From: Zeev Suraski (bourbon <email protected>)
Date: 07/01/98

At 13:55 01/07/98 -0000, auke <email protected> wrote:
>From: auke <email protected>
>Operating system: Linux (redhat 4)
>PHP version: 3.0 Final Release
>PHP Bug Type: Reproduceable crash
>Bug description:
>Unfortunately I haven't yet found a _short_ script that reproduces
>the bug. It seems it will only crash in special cases in which you
>have a minimum number of included files and functions... still
>trying to get it to the minimum crashsize :)
>
>But so far the problem is:
>script a includes a file b with function c
>file b includes a file d with class description e
>function c creates a new object f of class e and returns it.
>
>now PHP will crash when it creates this object if it has a function
>that takes a variable by reference. But _only_ when I have included
>some other files as wel.. (which don't have anything to do with the
>code that produces the crash...)
>
>sorry if this sounds vage, I'm still trying to find a minimal script..
>if I don't succeed I'll just have to send the whole bunch i guess..

Please send the whole package, I'll hopefully be able to debug it and get
to the offending place quicker than you (because of the knowledge about the
parser internals).

>(BTW,is there anyway to update this bugreport later?)

No, unfortunately, the bug reporting interface doesn't support it :I

Zeev

--
Zeev Suraski   <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>