1--TEST-- 2Bug #63206 Fully support error_handler stacking, even with null 3--FILE-- 4<?php 5 6set_error_handler(function() { 7 echo 'First handler' . PHP_EOL; 8}); 9 10set_error_handler(function() { 11 echo 'Second handler' . PHP_EOL; 12}); 13 14set_error_handler(null); 15 16set_error_handler(function() { 17 echo 'Fourth handler' . PHP_EOL; 18}); 19 20restore_error_handler(); 21restore_error_handler(); 22 23$triggerNotice++; 24?> 25--EXPECTF-- 26Second handler 27