It indeed does look very hackish. Is this bug the same bug as the last patch of yours addressed?
I'll try and take a look at the bug report this week. I'm not quite sure this can/should be fixed. AFAIK the return value of $str[1] = '' is the updated string itself and not the assigned ''.
Andi
At 09:07 AM 3/16/2003 +0900, Moriyoshi Koizumi wrote:
Attached is a suggested fix for bug #22592, which has finally come out of a successful long-hour-introspection with zend_execute.c.
Although the patch actually does somewhat hackish things and should appear to be invalid, I believe it's the right one.
Moriyoshi