php-src/Zend/tests/bug34358.phpt

16 lines
193 B
Plaintext
Raw Normal View History

--TEST--
Bug #34358 (Fatal error: Cannot re-assign $this(again))
--FILE--
<?php
class foo {
function bar() {
$ref = &$this;
}
}
$x = new foo();
$x->bar();
echo "ok\n";
?>
--EXPECT--
ok