xref: /PHP-8.0/Zend/tests/bug79784.phpt (revision 62bec0e0)
1--TEST--
2Bug #79784: Use after free if changing array during undef var during array write fetch
3--FILE--
4<?php
5set_error_handler(function () {
6    $GLOBALS['a'] = null;
7});
8
9$a[$c] = 'x' ;
10var_dump($a);
11$a[$c] .= 'x' ;
12var_dump($a);
13$a[$c][$c] = 'x' ;
14var_dump($a);
15
16?>
17--EXPECT--
18NULL
19NULL
20NULL
21