diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-08-21 17:38:03 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-08-21 17:38:03 +0800 |
commit | 0476bb1de54896b6c062125f22318533998ce94a (patch) | |
tree | 0b7b0998189bb4606df3d5e1260254d8e3d6de4a /Zend/tests/bug72911.phpt | |
parent | 17e8a3df134fe042b12cf0482fa578fb61f02cb2 (diff) | |
download | php-git-0476bb1de54896b6c062125f22318533998ce94a.tar.gz |
Fixed bug #72911 (Memleak in zend_binary_assign_op_obj_helper)
Diffstat (limited to 'Zend/tests/bug72911.phpt')
-rw-r--r-- | Zend/tests/bug72911.phpt | 17 |
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 |