xref: /PHP-7.2/Zend/tests/bug72911.phpt (revision 9b87b73f)
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 'b' of non-object in %sbug72911.php on line %d
15
16Warning: Attempt to assign property 'i' of non-object in %sbug72911.php on line %d
17NULL
18