From: Michael Wallner Date: Tue, 23 Jan 2007 15:37:59 +0000 (+0000) Subject: - allow response codes up to 599 X-Git-Tag: RELEASE_1_4_0~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6ecdeac874ee8b45ffa114faa9d1da4850e0a42e;p=m6w6%2Fext-http - allow response codes up to 599 - release 1.4.0 --- diff --git a/http_message_object.c b/http_message_object.c index a04cfe9..235ffc4 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -886,8 +886,8 @@ PHP_METHOD(HttpMessage, setResponseCode) if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &code)) { RETURN_FALSE; } - if (code < 100 || code > 510) { - http_error_ex(HE_WARNING, HTTP_E_INVALID_PARAM, "Invalid response code (100-510): %ld", code); + if (code < 100 || code > 599) { + http_error_ex(HE_WARNING, HTTP_E_INVALID_PARAM, "Invalid response code (100-599): %ld", code); RETURN_FALSE; } diff --git a/package.xml b/package.xml index a2b41df..530e41a 100644 --- a/package.xml +++ b/package.xml @@ -23,12 +23,11 @@ support. Parallel requests are available for PHP 5 and greater. - 1.4.0RC2 - 2007-01-19 + 1.4.0 + 2007-01-23 BSD, revised - beta - * Fixed infinite loop with http_parse_params("=") -* Fixed greedy response message parsing with proxy CONNECT requests (petr at hroch dot info) + stable + * Allow response codes up to 599 in HttpMessage::setResponseCode() diff --git a/package2.xml b/package2.xml index 59f915e..d417fa6 100644 --- a/package2.xml +++ b/package2.xml @@ -28,19 +28,18 @@ support. Parallel requests are available for PHP 5 and greater. mike@php.net yes - 2007-01-19 + 2007-01-23 - 1.4.0RC2 + 1.4.0 1.4.0 - beta + stable stable BSD, revised diff --git a/php_http.h b/php_http.h index 302bc86..67509c9 100644 --- a/php_http.h +++ b/php_http.h @@ -15,7 +15,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "1.4.0RC2" +#define PHP_EXT_HTTP_VERSION "1.4.0" #ifdef HAVE_CONFIG_H # include "config.h"