Req #28257 [Opn->Csd]: ability to retreive HTTP status set with header()

From: Date: Sat, 01 Nov 2014 22:36:12 +0000
Subject: Req #28257 [Opn->Csd]: ability to retreive HTTP status set with header()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188405@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=28257&edit=1 ID: 28257 Updated by: requinix@php.net Reported by: alexr at spies dot com Summary: ability to retreive HTTP status set with header() -Status: Open +Status: Closed Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Mac OS X PHP Version: Irrelevant -Assigned To: +Assigned To: requinix Block user comment: N Private report: N New Comment: Added in 5.4.0 as http_response_code(). http://php.net/manual/en/function.http-response-code.php Previous Comments: ------------------------------------------------------------------------ [2004-05-03 01:40:51] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=28257&edit=1

« previous php.bugs (#188405) next »