summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72907.phpt
blob: 00d9f5d1831721c778fe3ac1e1c4aaa05f50320e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc.c:260))
--FILE--
<?php

$a = 0;

($a->a = &$E) + ($b = $a->b->i -= 0);

?>
--EXPECTF--
Warning: Attempt to modify property of non-object in %sbug72907.php on line %d

Warning: Attempt to modify property of non-object in %sbug72907.php on line %d

Warning: Creating default object from empty value in %sbug72907.php on line %d

Notice: Undefined property: stdClass::$i in %sbug72907.php on line %d