ID: 30303 User updated by: new_media_alex at mail dot ru Reported By: new_media_alex at mail dot ru Status: Bogus Bug Type: Scripting Engine problem Operating System: Win XP & Unix PHP Version: 5.0.2 New Comment:
OK Previous Comments: ------------------------------------------------------------------------ [2004-10-08 17:33:18] [EMAIL PROTECTED] Yes. And it was already reported before, so please do not duplicate reports. ------------------------------------------------------------------------ [2004-10-08 17:23:50] new_media_alex at mail dot ru It's REALY BUG! <?php switch($_GET["a"]) { default: function cool() {} // You may place cool() fuction call here cool(); } cool(); // Or here :) ?> ------------------------------------------------------------------------ [2004-10-01 16:20:53] [EMAIL PROTECTED] 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. . ------------------------------------------------------------------------ [2004-10-01 15:21:50] new_media_alex at mail dot ru Description: ------------ Hangin up PHP as apache module E-Mail ME!!!! Reproduce code: --------------- <?php switch($some) { default: function cool() {} // You may place cool() fuction call here // cool(); } cool(); // Or here :) ?> Expected result: ---------------- Nothing Actual result: -------------- On Windows: http://kadabra.h12.ru/_img/ (ap2_php5.png) Apche Log Unix [Mandrake Linux 10.0 Apache 1.3.31 + PHP 5.1]: [Wed Sep 29 08:19:12 2004] [notice] child pid 2181 exit signal Segmentation fault (11) [Wed Sep 29 08:19:12 2004] [notice] child pid 2190 exit signal Segmentation fault (11) Windows [XP Apache 2.50 + PHP 5.2]: [Wed Sep 29 08:24:38 2004] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Wed Sep 29 08:24:38 2004] [notice] Parent: Created child process 1564 [Wed Sep 29 08:24:38 2004] [notice] Child 1564: Child process is running [Wed Sep 29 08:24:38 2004] [notice] Child 1564: Acquired the start mutex. [Wed Sep 29 08:24:38 2004] [notice] Child 1564: Starting 250 worker threads. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30303&edit=1