xref: /PHP-8.0/Zend/tests/bug78644.phpt (revision ad3ddf46)
1--TEST--
2Bug #78644: SEGFAULT in ZEND_UNSET_OBJ_SPEC_VAR_CONST_HANDLER
3--FILE--
4<?php
5
6$a = new stdClass;
7unset($a->b->c->d);
8unset($a->b->c['d']);
9var_dump($a);
10
11?>
12--EXPECT--
13object(stdClass)#1 (1) {
14  ["b"]=>
15  NULL
16}
17