1--TEST-- 2Bug #78598: Changing array during undef index RW error segfaults 3--FILE-- 4<?php 5 6$my_var = null; 7set_error_handler(function() use(&$my_var) { 8 $my_var = 0; 9}); 10 11$my_var[0] .= "xyz"; 12var_dump($my_var); 13 14$my_var = null; 15$my_var[0][0][0] .= "xyz"; 16var_dump($my_var); 17 18$my_var = null; 19$my_var["foo"] .= "xyz"; 20var_dump($my_var); 21 22$my_var = null; 23$my_var["foo"]["bar"]["baz"] .= "xyz"; 24var_dump($my_var); 25 26?> 27--EXPECT-- 28int(0) 29int(0) 30int(0) 31int(0) 32