File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug46196.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Test restore_error_handler() function : bug #46196
3: --CREDITS--
4: Olivier Doucet
5: --FILE--
6: <?php
7: /* Prototype : void restore_error_handler(void)
8: * Description: Restores the previously defined error handler function
9: * Source code: Zend/zend_builtin_functions.c
10: * Alias to functions:
11: */
12:
13: echo "*** Testing restore_error_handler() : error bug #46196 ***\n";
14:
15: var_dump( set_error_handler( 'myErrorHandler' ) );
16: var_dump( restore_error_handler() );
17: var_dump( set_error_handler( 'myErrorHandler' ) );
18:
19: function myErrorHandler($errno, $errstr, $errfile, $errline)
20: {
21: return true;
22: }
23:
24: ?>
25: ===DONE===
26: --EXPECTF--
27: *** Testing restore_error_handler() : error bug #46196 ***
28: NULL
29: bool(true)
30: NULL
31: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>