Patch http_response_code for *Web Server problem Bug #52555
Patch version 2010-08-07 13:53 UTC
Return to Bug #52555
| Download this patch
Patch Revisions:
2010-08-08 22:49 UTC | 2010-08-07 13:53 UTCDeveloper: dragoonis@php.net
Index: head.c
===================================================================
--- head.c (revision 301970)
+++ head.c (working copy)
@@ -281,6 +281,17 @@
@@ -281,6 +281,14 @@
}
/* }}} */
+/* {{{ proto long http_response_code()
+ Returns the current response code. */
+PHP_FUNCTION(http_response_code)
+{
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
+ RETURN_LONG(SG(sapi_headers).http_response_code);
+}
+/* }}} *
+
|