bug72907.phpt 486 B

123456789101112131415161718
  1. --TEST--
  2. Bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc.c:260))
  3. --FILE--
  4. <?php
  5. $a = 0;
  6. ($a->a = &$E) + ($b = $a->b->i -= 0);
  7. ?>
  8. --EXPECTF--
  9. Warning: Attempt to modify property of non-object in %sbug72907.php on line %d
  10. Warning: Attempt to modify property of non-object in %sbug72907.php on line %d
  11. Warning: Creating default object from empty value in %sbug72907.php on line %d
  12. Notice: Undefined property: stdClass::$i in %sbug72907.php on line %d