From:             blackei2k at gmx dot de
Operating system: Linux
PHP version:      5.0.0RC1
PHP Bug Type:     Zend Engine 2 problem
Bug description:  segfault on apache and php5 cli

Description:
------------
I get a segfault while running a script of mine. Here what apache's
error.log says:



[Mon Apr  5 13:36:36 2004] [notice] child pid 2072 exit signal
Segmentation fault (11)





It happens when i call the function 

set_common_vars() which is a method of a class. If i run var_dump($o) ($o
being an instance of the class set_common_vars is a member of) the script
errors as it should withoot segfaulting. 



The function ist defined as:

    function sets_common_vars() 

    {

        $this->strCat = (isset ($_GET['load']) ? $_GET['load'] :
'homepage');

        $this->strGet = $_SERVER['PHP_SELF'] . '?' . 'load=' . $strCat;



        return true;

    }



This is very strange. I tried to build up a test-case as i thought it was
related to the try {} catch blocks in the contructor, but it wasn't. My
test-case did it's work as it was supposed to. I'm not sure what i can do,
as the provided information above will most likely not help much tracing
the bug to its source. 





As the new object model is based on ZE2 i have classified this as an
engine issue. 


-- 
Edit bug report at http://bugs.php.net/?id=27868&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27868&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27868&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27868&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27868&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27868&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27868&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27868&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27868&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27868&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27868&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27868&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27868&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27868&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27868&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27868&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27868&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27868&r=float

Reply via email to