|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-27 12:26 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 19:00:01 2025 UTC |
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.