ID:               28111
 Updated by:       [EMAIL PROTECTED]
 Reported By:      derrell dot lipman at unwireduniverse dot com
-Status:           Feedback
+Status:           No Feedback
-Bug Type:         Reproducible crash
+Bug Type:         Zend Engine 2 problem
 Operating System: Linux 2.4
 PHP Version:      5.0.0RC1
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




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

[2004-04-23 09:04:17] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

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

[2004-04-22 22:21:32] derrell dot lipman at unwireduniverse dot com

Description:
------------
An assignment (of a class variable?) in a switch statement causes an
apache crash.  The first object instantiation int eh attached sample
($testval == 1) succeeds; the second one ($testval == 2) fails.


Reproduce code:
---------------
<?php
class TestClass
{
    var $type;
    
    function TestClass($testval)
    {
        $type = intval("2");

        if ($testval == 1)
        {
            switch($type)
            {
            default:
                echo "Test 1 worked<br>";
                flush();
                break;
            }
        }
        else if ($testval == 2)
        {
            switch($this->type = $type)    /* This line causes crash
*/
            {
            default:
                echo "Test 2 worked<br>";
                flush();
                break;
            }
        }

    }
}

$tc = new TestClass(1);
$tc = new TestClass(2);
?>


Actual result:
--------------
In apache/error.log:
  [notice] child pid XXXXX exit signal Segmentation fault (11)


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


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

Reply via email to