mirror of
https://github.com/php/php-src.git
synced 2026-10-29 10:22:06 +08:00
Add directories for tests relating to - `break` statements - functions with by-ref returns - `class_exists()` - dynamic properties - error handlers - error suppression with `@` - `get_object_vars()` - `highlight_string()` and `highlight_file()` - interfaces - `is_callable()` - iterators - shutdown functions - streams As well as organizing a couple of tests into existing sub directories along the way Work towards GH-15631
24 lines
489 B
PHP
24 lines
489 B
PHP
--TEST--
|
|
Test restore_error_handler() function : bug #46196
|
|
--CREDITS--
|
|
Olivier Doucet
|
|
--FILE--
|
|
<?php
|
|
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;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
*** Testing restore_error_handler() : error bug #46196 ***
|
|
NULL
|
|
bool(true)
|
|
NULL
|