php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch http_response_code for *Web Server problem Bug #52555Patch version 2010-08-08 22:49 UTC Return to Bug #52555 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2010-08-08 22:49 UTC | 2010-08-07 13:53 UTCDeveloper: dragoonis@php.netIndex: head.c =================================================================== --- head.c (revision 301970) +++ head.c (working copy) @@ -281,6 +281,14 @@ @@ -281,6 +281,17 @@ } /* }}} */ +/* {{{ 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); +} +/* }}} * + |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Wed May 08 00:01:31 2024 UTC |