1--TEST-- 2Bug #25922 (SEGV in error_handler when context is destroyed) 3--INI-- 4error_reporting=2047 5--FILE-- 6<?php 7function my_error_handler($error, $errmsg='', $errfile='', $errline=0, $errcontext='') 8{ 9 echo "$errmsg\n"; 10 $errcontext = ''; 11} 12 13set_error_handler('my_error_handler'); 14 15function test() 16{ 17 echo "Undefined index here: '{$data['HTTP_HEADER']}'\n"; 18} 19test(); 20?> 21--EXPECT-- 22Undefined variable: data 23Undefined index here: '' 24