Annotation of embedaddon/php/Zend/tests/bug46196.phpt, revision 1.1
1.1 ! misho 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>