New function http_response_code() to PHP5.4 Branch

From: Date: Fri, 17 Jun 2011 22:06:27 +0000
Subject: New function http_response_code() to PHP5.4 Branch
Groups: php.internals 
Request: Send a blank email to internals+get-53364@lists.php.net to get a copy of this message
Hi there, I'm requesting my function be put into the 5.4 branch. I added a function back in the 5.3 phase to obtain missing functionality of HEAD.c (and /ext/standard/ in general), but since it wasn't a bug fix then it wasn't suitable to add to a 5.3.x series. The function is http_response_code() - Link: http://lxr.php.net/opengrok/xref/PHP_TRUNK/ext/standard/head.c#285 when you set the HTTP status code in header("..."); or in the param of header, like: header("...", null, 404); then at a later date this can't be obtained again by any PHP function. Can this be added to 5_4 please? Thanks, Paul Dragoonis.

« previous php.internals (#53364) next »