diff options
author | Dmitry Stogov <dmitry@php.net> | 2011-08-01 15:23:16 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2011-08-01 15:23:16 +0000 |
commit | d4a80cfa8d7b2a5f30976c144efa33b3d159622a (patch) | |
tree | c4af0a27d27763f02b65fa2482b32ed9c92c2725 /Zend/tests/bug55305.phpt | |
parent | 74f68932b7381e0930d05428128ea360559c77fa (diff) | |
download | php-git-d4a80cfa8d7b2a5f30976c144efa33b3d159622a.tar.gz |
Fixed bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)
Diffstat (limited to 'Zend/tests/bug55305.phpt')
-rw-r--r-- | Zend/tests/bug55305.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/bug55305.phpt b/Zend/tests/bug55305.phpt new file mode 100644 index 0000000000..7f0749a315 --- /dev/null +++ b/Zend/tests/bug55305.phpt @@ -0,0 +1,16 @@ +--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" |