php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31857 header() function does not work
Submitted: 2005-02-06 00:23 UTC Modified: 2005-02-06 17:41 UTC
From: florian dot gleixner at gmx dot de Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.10 OS: Windows NT WH3 5.2 build 3790
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: florian dot gleixner at gmx dot de
New email:
PHP Version: OS:

 

 [2005-02-06 00:23 UTC] florian dot gleixner at gmx dot de
Description:
------------
I tried to add/replace HTTP headers with the header() function. I tried all examples from the manual. Even the simple redirection with "Location: ..." or "HTTP/1.0 404 Not Found" don't work.


Reproduce code:
---------------
<?php
header("HTTP/1.0 404 Not Found");
?>

Expected result:
----------------
HTTP/1.0 404 Not Found

Actual result:
--------------
HTTP/1.1 200 OK

Content-Type: text/html

Server: Microsoft-IIS/6.0

X-Powered-By: PHP/4.3.10

MicrosoftOfficeWebServer: 5.0_Pub

X-Powered-By: ASP.NET

Date: Sat, 05 Feb 2005 22:53:18 GMT

Connection: close


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-06 06:49 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Ask support questions about how to use PHP on the mailing lists.

 [2005-02-06 17:41 UTC] florian dot gleixner at gmx dot de
Sorry if that bug is bogus, but then the documentation is simply wrong. There is no hint in the header() documentation that this function depends on php version/cgi/os/ini settings. header() does also not throw a error/warning/notice.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 01:01:31 2024 UTC