xref: /PHP-7.1/Zend/tests/bug72911.phpt (revision 0476bb1d)
1--TEST--
2Bug #72911 (Memleak in zend_binary_assign_op_obj_helper)
3--FILE--
4<?php
5
6$a = 0;
7
8$b = $a->b->i -= 0;
9
10var_dump($b);
11
12?>
13--EXPECTF--
14Warning: Attempt to modify property of non-object in %sbug72911.php on line %d
15
16Warning: Attempt to assign property of non-object in %sbug72911.php on line %d
17NULL
18