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