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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon Jun 02 22:01:27 2025 UTC