From: Ilia Alshanetsky Date: Sun, 26 Mar 2006 17:12:05 +0000 (+0000) Subject: Fixed bug #36857 (Added support for partial content fetching to the HTTP X-Git-Tag: php-5.1.3RC2~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a33d64e7b62c4861d8e06086556039c8501afa95;p=php Fixed bug #36857 (Added support for partial content fetching to the HTTP streams wrapper). --- diff --git a/NEWS b/NEWS index 73b40f5604..615dcd0afe 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,8 @@ PHP NEWS - Fixed SoapFault::getMessage(). (Dmitry) - Fixed bug #36859 (DOMElement crashes when calling __construct when clone'ing). (Tony) +- Fixed bug #36857 (Added support for partial content fetching to the HTTP + streams wrapper). (Ilia) - Fixed bug #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault). (Tony) - Fixed bug #36820 (Privileged connection with an Oracle password file fails). diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 0c64746f8a..04231cf6b9 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -493,6 +493,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path, } switch(response_code) { case 200: + case 206: /* partial content */ case 302: case 303: case 301: