diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-03-09 21:09:36 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-03-10 18:20:32 +0100 |
commit | 29ee3e3c49bd3b32219f45ea4d4f1263c3021150 (patch) | |
tree | 565d0a91f53f68583d2d91956373b88a1731a9e3 /Zend/tests/bug73960.phpt | |
parent | c398198c0a8e58bc37a441bcfbfe1eb0e8058d9f (diff) | |
download | php-git-29ee3e3c49bd3b32219f45ea4d4f1263c3021150.tar.gz |
Fixed bug #73960
Diffstat (limited to 'Zend/tests/bug73960.phpt')
-rw-r--r-- | Zend/tests/bug73960.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/bug73960.phpt b/Zend/tests/bug73960.phpt new file mode 100644 index 0000000000..533c87afb0 --- /dev/null +++ b/Zend/tests/bug73960.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #73960: Leak with instance method calling static method with referenced return +--FILE-- +<?php + +$value = 'one'; +$array = array($value); +$array = $ref =& $array; +var_dump($array); + +?> +--EXPECT-- +array(1) { + [0]=> + string(3) "one" +} |