1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 19:41:05 +02:00

MFH: XFAIL test for bug #46196 on restore_error_handler().

This commit is contained in:
Felix De Vliegher
2008-11-02 20:15:46 +00:00
parent 82a251172c
commit d90dfe7dbf

33
Zend/tests/bug46196.phpt Normal file
View File

@@ -0,0 +1,33 @@
--TEST--
Test restore_error_handler() function : bug #46196
--CREDITS--
Olivier Doucet
--XFAIL--
This test will fail until bug #46196 is fixed
--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===
--EXPECTF--
*** Testing restore_error_handler() : error bug #46196 ***
NULL
bool(true)
NULL
===DONE===