1--TEST-- 2string offset 008 indirect string modification by error handler 3--FILE-- 4<?php 5set_error_handler(function($code, $msg) { 6 echo "Err: $msg\n"; 7 $GLOBALS['a']=8; 8}); 9$z = "z"; 10$a=["xx$z"]; 11var_dump($a[0][$b]); 12var_dump($a); 13?> 14--EXPECT-- 15Err: Undefined variable $b 16Err: String offset cast occurred 17string(1) "x" 18int(8) 19