cvs: pecl /http http_url_api.c package2.xml php_http.h

From: Date: Tue, 21 Feb 2006 22:43:17 +0000
Subject: cvs: pecl /http http_url_api.c package2.xml php_http.h
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-5239@lists.php.net to get a copy of this message
mike Tue Feb 21 22:43:17 2006 UTC Modified files: /pecl/http http_url_api.c package2.xml php_http.h Log: - fix bug #6861: 5 digit ports get truncated http://cvs.php.net/viewcvs.cgi/pecl/http/http_url_api.c?r1=1.38&r2=1.39&diff_format=u Index: pecl/http/http_url_api.c diff -u pecl/http/http_url_api.c:1.38 pecl/http/http_url_api.c:1.39 --- pecl/http/http_url_api.c:1.38 Tue Feb 7 16:04:03 2006 +++ pecl/http/http_url_api.c Tue Feb 21 22:43:16 2006 @@ -10,7 +10,7 @@ +--------------------------------------------------------------------+ */ -/* $Id: http_url_api.c,v 1.38 2006/02/07 16:04:03 mike Exp $ */ +/* $Id: http_url_api.c,v 1.39 2006/02/21 22:43:16 mike Exp $ */ #define HTTP_WANT_SAPI #define HTTP_WANT_NETDB @@ -276,9 +276,9 @@ 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); } http://cvs.php.net/viewcvs.cgi/pecl/http/package2.xml?r1=1.66&r2=1.67&diff_format=u Index: pecl/http/package2.xml diff -u pecl/http/package2.xml:1.66 pecl/http/package2.xml:1.67 --- pecl/http/package2.xml:1.66 Mon Feb 20 16:43:48 2006 +++ pecl/http/package2.xml Tue Feb 21 22:43:16 2006 @@ -37,7 +37,7 @@ </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 @@ </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="/"> http://cvs.php.net/viewcvs.cgi/pecl/http/php_http.h?r1=1.125&r2=1.126&diff_format=u Index: pecl/http/php_http.h diff -u pecl/http/php_http.h:1.125 pecl/http/php_http.h:1.126 --- pecl/http/php_http.h:1.125 Mon Feb 20 16:43:48 2006 +++ pecl/http/php_http.h Tue Feb 21 22:43:17 2006 @@ -10,12 +10,12 @@ +--------------------------------------------------------------------+ */ -/* $Id: php_http.h,v 1.125 2006/02/20 16:43:48 mike Exp $ */ +/* $Id: php_http.h,v 1.126 2006/02/21 22:43:17 mike Exp $ */ #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"

« previous php.pecl.cvs (#5239) next »