#46435 [NEW]: restore_error_handler crash
| From: | olivier at ajeux dot com | Date: | Fri, 31 Oct 2008 15:51:36 +0000 |
| Subject: | #46435 [NEW]: restore_error_handler crash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-130357@lists.php.net to get a copy of this message | ||
From: olivier at ajeux dot com
Operating system: Linux
PHP version: 5.3.0alpha2
PHP Bug Type: Reproducible crash
Bug description: restore_error_handler crash
Description:
------------
Tested with php5.3-200810301330 (bug happened with previous snapshots).
It seems restore_error_handler is not working and crashed PHP.
See reproduce code below.
Same code working as expected with PHP 5.2.3 (cli)
This bug may be similar to Bug #46196, but PHP also crashed with message
"zend_mm_heap corrupted".
Reproduce code:
---------------
<?php
var_dump ( set_error_handler ('myErrorHandler') );
restore_error_handler ();
var_dump ( set_error_handler ('myErrorHandler') );
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
return true;
}
Expected result:
----------------
NULL
NULL
Actual result:
--------------
NULL
string(14) "myErrorHandler"
zend_mm_heap corrupted
--
Edit bug report at http://bugs.php.net/?id=46435&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46435&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46435&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46435&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46435&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46435&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46435&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46435&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46435&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46435&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46435&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46435&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46435&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46435&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46435&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46435&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46435&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46435&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46435&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46435&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46435&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46435&r=mysqlcfg