Edit report at https://bugs.php.net/bug.php?id=52555&edit=1
ID: 52555 Comment by: dragoonis at gmail dot com Reported by: dragoo...@php.net Summary: Headers_List not returning HTTP Status Code Status: Closed Type: Feature/Change Request Package: *Web Server problem PHP Version: 5.3.3 Assigned To: dragoonis Block user comment: N Private report: N New Comment: Hey jorrit at ncode dot nl, If you see the following link, the current implementation of the function http_response_code is the following: /* {{{ proto long http_response_code([int response_code]) 284 Sets a response code, or returns the current HTTP response code */ http://lxr.php.net/opengrok/xref/PHP_5_4/ext/standard/head.c#283 Hope this helps. Regards, Paul Dragoonis. Previous Comments: ------------------------------------------------------------------------ [2011-09-27 08:29:49] jorrit at ncode dot nl It would be nice if the status code could also be set using this function. As mentioned in another comment, the current method of using header() is kind of a hack and the developer needs to provide the irrelevant HTTP version in order to set the response code. ------------------------------------------------------------------------ [2010-12-11 14:58:08] marc-bennewitz at arcor dot de Why it's not committed to a branch ? When it will be available ? ------------------------------------------------------------------------ [2010-12-11 14:47:55] paj...@php.net It is committed in trunk (svn trunk). ------------------------------------------------------------------------ [2010-12-11 13:37:05] marc-bennewitz at arcor dot de Hi, I can't find the function "http_response_code" within 5.3.4 and no documentation about it or a message on changelog of 5.3.4. What does it mean "Committed to 5.3.99" ? How many years we have to wait :/ It would be very helpful to have some publish time/version. Greetings, Marc ------------------------------------------------------------------------ [2010-08-09 15:11:17] ka...@php.net Committed to 5.3.99 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52555 -- Edit this bug report at https://bugs.php.net/bug.php?id=52555&edit=1