* fix pecl bug #16533 (http_redirect fails with url->port==0)
authorMichael Wallner <mike@php.net>
Thu, 8 Oct 2009 08:39:56 +0000 (08:39 +0000)
committerMichael Wallner <mike@php.net>
Thu, 8 Oct 2009 08:39:56 +0000 (08:39 +0000)
http_url_api.c
package2.xml

index 09558a246386f767a14365af4bc80bb7b6e52a0c..c1a4f81b0535125af32c8c1647dde675905cc5d8 100644 (file)
@@ -175,6 +175,7 @@ PHP_HTTP_API void _http_build_url(int flags, const php_url *old_url, const php_u
                                default:
 #endif
                                case 80:
+                               case 0:
                                        url->scheme = estrndup("http", lenof("http"));
                                        break;
                        
index 6896963f80a7952f0443399c038bad07724578d5..fd5f10ed38183e4e8bc302d9f2659fe470dfff87 100644 (file)
@@ -39,7 +39,8 @@ support. Parallel requests are available for PHP 5 and greater.
  </stability>
  <license>BSD, revised</license>
  <notes><![CDATA[
-Fixed bug #16817 (Proxy-Auth. and WWW-Auth. credentials mixed after connection reuse)
+* Fixed bug #16533 (http_redirect fails with url->port==0)
+* Fixed bug #16817 (Proxy-Auth. and WWW-Auth. credentials mixed after connection reuse)
 ]]></notes>
  <contents>
   <dir name="/">