mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
17 lines
271 B
Plaintext
17 lines
271 B
Plaintext
|
--TEST--
|
||
|
Bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class Foo {
|
||
|
var $foo = "test";
|
||
|
}
|
||
|
|
||
|
$f = new Foo();
|
||
|
$f->bar =& $f->foo;
|
||
|
var_dump($f->foo);
|
||
|
var_dump($f->bar);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
string(4) "test"
|
||
|
string(4) "test"
|