xref: /PHP-5.6/Zend/tests/bug72907.phpt (revision b740bb39)
1--TEST--
2Bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc.c:260))
3--FILE--
4<?php
5
6$a = 0;
7
8($a->a = &$E) + ($b = $a->b->i -= 0);
9
10?>
11--EXPECTF--
12Warning: Attempt to modify property of non-object in %sbug72907.php on line %d
13
14Warning: Attempt to modify property of non-object in %sbug72907.php on line %d
15
16Warning: Creating default object from empty value in %sbug72907.php on line %d
17
18Notice: Undefined property: stdClass::$i in %sbug72907.php on line %d
19