ID:               32126
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ennixo at free dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Windows XP
 PHP Version:      5.0.2
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See #29944.


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

[2005-02-27 12:11:24] ennixo at free dot fr

Description:
------------
Apache crashes when calling a php function declared in a case statement
and with a global variable.

Reproduce code:
---------------
$a = 1;
switch ($a)
{
    case 1:
        function test ()
        {
            global $plop;
            echo "test $plop";
        }
        $plop = "(bis)";
        test();
        break;
}

Expected result:
----------------
"test (bis)"

Actual result:
--------------
apache crashes.

just move the function outside the switch and it will work.


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


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

Reply via email to