1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00
Files
archived-php-src/Zend/tests/bug46196.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

32 lines
707 B
PHP

--TEST--
Test restore_error_handler() function : bug #46196
--CREDITS--
Olivier Doucet
--FILE--
<?php
/* Prototype : void restore_error_handler(void)
* Description: Restores the previously defined error handler function
* Source code: Zend/zend_builtin_functions.c
* Alias to functions:
*/
echo "*** Testing restore_error_handler() : error bug #46196 ***\n";
var_dump( set_error_handler( 'myErrorHandler' ) );
var_dump( restore_error_handler() );
var_dump( set_error_handler( 'myErrorHandler' ) );
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
return true;
}
?>
===DONE===
--EXPECT--
*** Testing restore_error_handler() : error bug #46196 ***
NULL
bool(true)
NULL
===DONE===