ID:               46435
 Updated by:       [EMAIL PROTECTED]
 Reported By:      olivier at ajeux dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      5.3.0alpha2
 New Comment:

Please add your comments to bug #49196 since this is essentially same
issue. (most likely the other reportee didn't have error_reporting high
enough :)


Previous Comments:
------------------------------------------------------------------------

[2008-10-31 15:51:36] olivier at ajeux dot com

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 this bug report at http://bugs.php.net/?id=46435&edit=1

Reply via email to