xref: /PHP-8.1/Zend/tests/bug76752.phpt (revision fd463a9a)
1--TEST--
2Bug #76752 (Crash in ZEND_COALESCE_SPEC_TMP_HANDLER - assertion in _get_zval_ptr_tmp failed)
3--FILE--
4<?php
5$obj = new stdClass;
6$val = 'foo';
7$obj->prop = &$val;
8var_dump($obj->prop ?? []);
9?>
10--EXPECT--
11string(3) "foo"
12