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); } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php