ID:               26092
 Updated by:       [EMAIL PROTECTED]
 Reported By:      a_s at seznam dot cz
-Status:           Open
+Status:           Bogus
 Bug Type:         HTTP related
 Operating System: WinXP,Win2003Server-Web
 PHP Version:      4.3.2
 New Comment:

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. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

dupe of bug #22108



Previous Comments:
------------------------------------------------------------------------

[2003-11-03 04:32:50] a_s at seznam dot cz

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 this bug report at http://bugs.php.net/?id=26092&edit=1

Reply via email to