Re: Writing new test for #46196

From: Date: Fri, 31 Oct 2008 20:22:30 +0000
Subject: Re: Writing new test for #46196
References: 1 2  Groups: php.qa 
Request: Send a blank email to php-qa+get-64503@lists.php.net to get a copy of this message
Hi, Thanks for the rewriting Felix ! I think there is nothing to add or replace in this code now :) I hope it will help making PHP better, especially php 5.3 (which I'm using everyday now for a new project that need Late Static Binding). Olivier 2008/10/31 Felix De Vliegher <felix.devliegher@gmail.com> > Hello Olivier > In your case, this could be (file restore_error_handler_bug46196.phpt): > > --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() : 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() : bug #46196 *** > NULL > bool(true) > NULL > ===DONE=== > > >

« previous php.qa (#64503) next »