1--TEST-- 2Test restore_error_handler() function : bug #46196 3--CREDITS-- 4Olivier Doucet 5--FILE-- 6<?php 7echo "*** Testing restore_error_handler() : error bug #46196 ***\n"; 8 9var_dump( set_error_handler( 'myErrorHandler' ) ); 10var_dump( restore_error_handler() ); 11var_dump( set_error_handler( 'myErrorHandler' ) ); 12 13function myErrorHandler($errno, $errstr, $errfile, $errline) 14{ 15 return true; 16} 17 18?> 19--EXPECT-- 20*** Testing restore_error_handler() : error bug #46196 *** 21NULL 22bool(true) 23NULL 24