mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
21 lines
296 B
Plaintext
21 lines
296 B
Plaintext
|
--TEST--
|
||
|
Bug #79784: Use after free if changing array during undef var during array write fetch
|
||
|
--FILE--
|
||
|
<?php
|
||
|
set_error_handler(function () {
|
||
|
$GLOBALS['a'] = null;
|
||
|
});
|
||
|
|
||
|
$a[$c] = 'x' ;
|
||
|
var_dump($a);
|
||
|
$a[$c] .= 'x' ;
|
||
|
var_dump($a);
|
||
|
$a[$c][$c] = 'x' ;
|
||
|
var_dump($a);
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
NULL
|
||
|
NULL
|
||
|
NULL
|