mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
62bec0e083
The fix here is essentially the same as for bug #78598, just for the undefined variable notice, rather than the undefined index one.
21 lines
296 B
PHP
21 lines
296 B
PHP
--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
|