summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72911.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug72911.phpt')
-rw-r--r--Zend/tests/bug72911.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/bug72911.phpt b/Zend/tests/bug72911.phpt
new file mode 100644
index 0000000000..098261cadf
--- /dev/null
+++ b/Zend/tests/bug72911.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Bug #72911 (Memleak in zend_binary_assign_op_obj_helper)
+--FILE--
+<?php
+
+$a = 0;
+
+$b = $a->b->i -= 0;
+
+var_dump($b);
+
+?>
+--EXPECTF--
+Warning: Attempt to modify property of non-object in %sbug72911.php on line %d
+
+Warning: Attempt to assign property of non-object in %sbug72911.php on line %d
+NULL