- fix bug #6861: 5 digit ports get truncated
authorMichael Wallner <mike@php.net>
Tue, 21 Feb 2006 22:43:17 +0000 (22:43 +0000)
committerMichael Wallner <mike@php.net>
Tue, 21 Feb 2006 22:43:17 +0000 (22:43 +0000)
http_url_api.c
package2.xml
php_http.h

index 5b618a3645bca1da82f9fc4b480eca41120f1aec..cac64ec81ee880812cb10e186169363b50252855 100644 (file)
@@ -276,9 +276,9 @@ PHP_HTTP_API void _http_build_url(int flags, const php_url *old_url, const php_u
                strlcat(*url_str, url->host, HTTP_URL_MAXLEN);
                
                if (url->port) {
-                       char port_str[6] = {0};
+                       char port_str[8] = {0};
                        
-                       snprintf(port_str, 5, "%d", (int) url->port);
+                       snprintf(port_str, lenof(port_str), "%d", (int) url->port);
                        strlcat(*url_str, ":", HTTP_URL_MAXLEN);
                        strlcat(*url_str, port_str, HTTP_URL_MAXLEN);
                }
index 4e338cfb070fa1c6b9bbbb8bc78a5faaff0b94c0..84e31fa1f5fd515b818d9122a2f7c2290eb655a9 100644 (file)
@@ -37,7 +37,7 @@ HttpResponse
  </lead>
  <date>2006-00-00</date>
  <version>
-  <release>0.24.0</release>
+  <release>0.24.1</release>
   <api>0.24.0</api>
  </version>
  <stability>
@@ -46,14 +46,7 @@ HttpResponse
  </stability>
  <license>BSD, revised</license>
  <notes><![CDATA[
-+ Added If-Range header recognition.
-+ Added "portrange" request option.
-+ Added HttpQueryString::iconv().
-+ HttpQueryString implements Serializable (PHP-5.1).
-
-* Fixed bug #6804 - configure does not recognize '--without-http-zlib-compression'.
-* Fixed cases where '412 Precondition failed' responses should be sent.
-* Fixed message chain order in HttpRequest::getHistory().
+* Fixed bug #6861 - 5 digit ports get truncated
 ]]></notes>
  <contents>
   <dir name="/">
index 9e67cfac7f0181e739749b91a8937731c89615d3..beddf2ac59c6afb9d6cb899b6ea356e18f95a5b4 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef PHP_EXT_HTTP_H
 #define PHP_EXT_HTTP_H
 
-#define PHP_EXT_HTTP_VERSION "0.24.0"
+#define PHP_EXT_HTTP_VERSION "0.24.1"
 
 #ifdef HAVE_CONFIG_H
 #      include "config.h"