ID:               31894
 Updated by:       [EMAIL PROTECTED]
 Reported By:      adove at mindrage dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Zend Engine 2 problem
 Operating System: WinXP
 PHP Version:      5.0.3
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

Also, please try CVS snapshot first - I can't reproduce it with the
parts of the code you've posted.


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

[2005-02-09 12:24:28] adove at mindrage dot com

Description:
------------
This may be related to an older bug that was fixed (#24708) but I can
reproduce reliably (having spent days and hours chasing!). Basically,
if you call restore_error_handler from __destruct() things go horribly
ary. Interestingly enough, calling restore_exception_handler works just
fine.

This happens both CLI and Apache 2.x. 

Note that it does not matter if you use $this or &$this in the
constructor. 

Reproduce code:
---------------
    function __construct(
        &$aConfig
        )
    {
        if(is_array($aConfig))
        {
            $this->m_aConfig = &$aConfig; // Extraneous but it's in my
constructor.
            set_error_handler(array &$this,
"handleRuntimeException"));
            set_exception_handler(array($this, "handleException"));
        }
    }
        
    function __destruct()
    {
        //restore_error_handler();
        restore_exception_handler();
        unset($this->m_aConfig);
    }



Expected result:
----------------
Proper ending of PHP script execution. 

Actual result:
--------------
Segfault in php5ts.dll, ModVer: 5.0.3.3 Offset: 0004d661


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31894&edit=1

Reply via email to