cvs: ZendEngine2(PHP_5_3) /tests bug46196.phpt

[email protected] ("Felix De Vliegher")
Newsgroups php.zend-engine.cvs
Message-ID <cvsfelixdv1225656947@cvsserver>
felixdv		Sun Nov  2 20:15:47 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /ZendEngine2/tests	bug46196.phpt 
  Log:
  MFH: XFAIL test for bug #46196 on restore_error_handler().
  
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug46196.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug46196.phpt
+++ ZendEngine2/tests/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() : 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===
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.