#25173 [NEW]: Piling two header('Location: URL)'; make the first one to be loaded

From: Date: Wed, 20 Aug 2003 11:01:11 +0000
Subject: #25173 [NEW]: Piling two header('Location: URL)'; make the first one to be loaded
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46301@lists.php.net to get a copy of this message
From: i dot spalletti at iast dot it Operating system: Linux (kernel 2.4.21) PHP version: 4.3.3RC4 PHP Bug Type: HTTP related Bug description: Piling two header('Location: URL)'; make the first one to be loaded Description: ------------ As of documentazion if you pile up two header('Location: URL)'; the second URL will be opened. In 4.3.3RC4 you will load the first one Reproduce code: --------------- <?php header('Location: http://www.php.net'); print "Let's write something interesting that nobody would read"; header('Location: http://qa.php.net'); ?> Expected result: ---------------- You should load PHP home page Actual result: -------------- You will load QA home page -- Edit bug report at http://bugs.php.net/?id=25173&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25173&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25173&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25173&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25173&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25173&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25173&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25173&r=support Expected behavior: http://bugs.php.net/fix.php?id=25173&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25173&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25173&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25173&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25173&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25173&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25173&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25173&r=gnused

« previous php.bugs (#46301) next »