svn: /php/php-src/trunk/ext/standard/ head.c

From: Date: Tue, 10 Aug 2010 00:19:51 +0000
Subject: svn: /php/php-src/trunk/ext/standard/ head.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-63257@lists.php.net to get a copy of this message
iliaa Tue, 10 Aug 2010 00:19:51 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=302052 Log: Make http_response_code() return FALSE where data is not available (Ex. cli sapi) Changed paths: U php/php-src/trunk/ext/standard/head.c Modified: php/php-src/trunk/ext/standard/head.c =================================================================== --- php/php-src/trunk/ext/standard/head.c 2010-08-09 21:40:58 UTC (rev 302051) +++ php/php-src/trunk/ext/standard/head.c 2010-08-10 00:19:51 UTC (rev 302052) @@ -289,6 +289,10 @@ return; } + if (!SG(sapi_headers).http_response_code) { + RETURN_FALSE; + } + RETURN_LONG(SG(sapi_headers).http_response_code); } /* }}} */

« previous php.cvs (#63257) next »