php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #28257 ability to retreive HTTP status set with header()
Submitted: 2004-05-03 01:40 UTC Modified: 2014-11-01 22:36 UTC
From: alexr at spies dot com Assigned: requinix (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS: Mac OS X
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alexr at spies dot com
New email:
PHP Version: OS:

 

 [2004-05-03 01:40 UTC] alexr at spies dot com
Description:
------------
It would be desirable to be able to retreive the HTTP 
status set via any previous header() calls.

(In my case, I'm producing my own combined-style access 
logs because like many virtual host setups, I can't make 
meaningful use of the actual Apache logs.)

As a workaround, PHP 5 appears to add header_list(), 
from which this data could be parsed.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-01 22:36 UTC] requinix@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: requinix
 [2014-11-01 22:36 UTC] requinix@php.net
Added in 5.4.0 as http_response_code().
http://php.net/manual/en/function.http-response-code.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jun 01 08:01:26 2025 UTC