From: a_s at seznam dot cz Operating system: WinXP,Win2003Server-Web PHP version: 4.3.2 PHP Bug Type: HTTP related Bug description: header location utf-8
Description: ------------ PHP 4.3.2.2 CGI Try to save the code below to file in utf-8. Reproduce code: --------------- <?//!!!redirect has to be in ansi and not in UTF-8 !!!! if (!headers_sent($filename, $linenum)) { header ('Location: http://www.google.com/'); exit; // You would most likely trigger an error here. } else { print "Headers already sent in $filename on line $linenum\nCannot redirect."; exit; } ?> Expected result: ---------------- Redirect to google Actual result: -------------- message: Headers already sent in C:\...\redir_.php on line 1 Cannot redirect. -- Edit bug report at http://bugs.php.net/?id=26092&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26092&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26092&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26092&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26092&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26092&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26092&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26092&r=support Expected behavior: http://bugs.php.net/fix.php?id=26092&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26092&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26092&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26092&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26092&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26092&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26092&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26092&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26092&r=float