1 Jun 2003 01:36
[PHP-DEV] Bug #22510: Working toward a fix...
David Brown <dave <at> codewhore.org>
2003-05-31 23:36:11 GMT
2003-05-31 23:36:11 GMT
Hi:
I believe there's a missing refcount increment causing this bug, and I
think I may have uncovered some evidence that could get us closer to a
fix. I've added opcode dumps to zend_execute.c with a well-placed perl
command, so as to see the instructions as they're executed.
All of the following has been performed against a clean snapshot of PHP4
CVS HEAD.
Given the following script, containing one class with two methods
differing only by a silence operator:
<?php
class foo
{
function &method1() {
return $this->foo;
}
function &method2() {
return <at> $this->foo;
}
}
$i = new foo();
$i->method1();
echo "\n";
$i->method2();
?>
(Continue reading)
RSS Feed