php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #52555
Patch http_response_code revision 2010-08-08 22:49 UTC by dragoonis@php.net
revision 2010-08-07 13:53 UTC by dragoonis@php.net
Patch httpd_response_code revision 2010-08-08 22:48 UTC by dragoonis@php.net

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 UTC

Developer: dragoonis@php.net

Line 24 (now 24), was 19 lines, now 16 lines

  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);
  +}
  +/* }}} *
  +
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 10:03:03 2014 UTC