mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
16 lines
193 B
Plaintext
16 lines
193 B
Plaintext
|
--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
|