mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
ad3ddf46f9
Make sure the initialize the result of FETCH_OBJ_UNSET operations. I'm using a NULL value rather than ERROR here, because the latter no longer exists in master.
17 lines
221 B
PHP
17 lines
221 B
PHP
--TEST--
|
|
Bug #78644: SEGFAULT in ZEND_UNSET_OBJ_SPEC_VAR_CONST_HANDLER
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = new stdClass;
|
|
unset($a->b->c->d);
|
|
unset($a->b->c['d']);
|
|
var_dump($a);
|
|
|
|
?>
|
|
--EXPECT--
|
|
object(stdClass)#1 (1) {
|
|
["b"]=>
|
|
NULL
|
|
}
|