summaryrefslogtreecommitdiff
path: root/Zend/tests/bug73960.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug73960.phpt')
-rw-r--r--Zend/tests/bug73960.phpt16
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"
+}