From: jakespotgieter at hotmail dot com Operating system: Windows PHP version: 5CVS-2003-10-13 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: SWITCH
Description: ------------ When there are multiple cases within a switch block, if you try to use the header function, more specifically header("location:$url") it doesn't work. When I ran the same code under 4.3.3 it worked. Reproduce code: --------------- SWITCH ($_GET['method']){ CASE 'Foo': //do something BREAK; CASE 'Bar': if($i == true){ header("location:?method=Foo") }else{ //do something else } BREAK; } -- Edit bug report at http://bugs.php.net/?id=25850&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25850&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25850&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25850&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25850&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25850&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25850&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25850&r=support Expected behavior: http://bugs.php.net/fix.php?id=25850&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25850&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25850&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25850&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25850&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25850&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25850&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25850&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25850&r=float