- allow response codes up to 599
authorMichael Wallner <mike@php.net>
Tue, 23 Jan 2007 15:37:59 +0000 (15:37 +0000)
committerMichael Wallner <mike@php.net>
Tue, 23 Jan 2007 15:37:59 +0000 (15:37 +0000)
- release 1.4.0

http_message_object.c
package.xml
package2.xml
php_http.h

index a04cfe9aef8c4dd4cc2858d1121aa554bccf6a91..235ffc4690cd7b1c89327052937e361410c7ec91 100644 (file)
@@ -886,8 +886,8 @@ PHP_METHOD(HttpMessage, setResponseCode)
        if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &code)) {
                RETURN_FALSE;
        }
        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;
        }
 
                RETURN_FALSE;
        }
 
index a2b41dfc0a20ae2808f181e35e9f06c42d1e4b95..530e41a41c73839dcab84aa9b997cedc07b3a1ac 100644 (file)
@@ -23,12 +23,11 @@ support. Parallel requests are available for PHP 5 and greater.
   </maintainer>
   </maintainers>
  <release>
   </maintainer>
   </maintainers>
  <release>
-  <version>1.4.0RC2</version>
-  <date>2007-01-19</date>
+  <version>1.4.0</version>
+  <date>2007-01-23</date>
   <license>BSD, revised</license>
   <license>BSD, revised</license>
-  <state>beta</state>
-  <notes>* Fixed infinite loop with http_parse_params(&quot;=&quot;)
-* Fixed greedy response message parsing with proxy CONNECT requests (petr at hroch dot info)
+  <state>stable</state>
+  <notes>* Allow response codes up to 599 in HttpMessage::setResponseCode()
   </notes>
   <deps>
    <dep type="php" rel="ge" version="4.3"/>
   </notes>
   <deps>
    <dep type="php" rel="ge" version="4.3"/>
index 59f915e39750f06734f5d2a08ff587e4a5333a56..d417fa64c993c26390ab9b895596a3c60ca9dd92 100644 (file)
@@ -28,19 +28,18 @@ support. Parallel requests are available for PHP 5 and greater.
   <email>mike@php.net</email>
   <active>yes</active>
  </lead>
   <email>mike@php.net</email>
   <active>yes</active>
  </lead>
- <date>2007-01-19</date>
+ <date>2007-01-23</date>
  <version>
  <version>
-  <release>1.4.0RC2</release>
+  <release>1.4.0</release>
   <api>1.4.0</api>
  </version>
  <stability>
   <api>1.4.0</api>
  </version>
  <stability>
-  <release>beta</release>
+  <release>stable</release>
   <api>stable</api>
  </stability>
  <license>BSD, revised</license>
  <notes><![CDATA[
   <api>stable</api>
  </stability>
  <license>BSD, revised</license>
  <notes><![CDATA[
-* Fixed infinite loop with http_parse_params("=")
-* Fixed greedy response message parsing with proxy CONNECT requests (petr at hroch dot info)
+* Allow response codes up to 599 in HttpMessage::setResponseCode()
 ]]></notes>
  <contents>
   <dir name="/">
 ]]></notes>
  <contents>
   <dir name="/">
index 302bc86294edfb2b43918899c9c999cc0ae2afc0..67509c9339ee3f9fbdd6e0e6e73165d9e9cab48e 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef PHP_EXT_HTTP_H
 #define PHP_EXT_HTTP_H
 
 #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"
 
 #ifdef HAVE_CONFIG_H
 #      include "config.h"