bug25922.phpt 495 B

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