xref: /PHP-8.0/Zend/tests/bug75241.phpt (revision d30cd7d7)
1--TEST--
2Bug #75241 (Null pointer dereference in zend_mm_alloc_small())
3--FILE--
4<?php
5
6$d->d = &$d + $d->d/=0;
7var_dump($d);
8?>
9--EXPECTF--
10Fatal error: Uncaught Error: Attempt to modify property "d" on null in %s:%d
11Stack trace:
12#0 {main}
13  thrown in %s on line %d
14