]> granicus.if.org Git - php/commitdiff
Fixed bug #42637 (SoapFault : Only http and https are allowed)
authorDmitry Stogov <dmitry@php.net>
Wed, 17 Oct 2007 11:17:46 +0000 (11:17 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 17 Oct 2007 11:17:46 +0000 (11:17 +0000)
NEWS
ext/soap/php_http.c

diff --git a/NEWS b/NEWS
index d4cd25cd1a0bc7f97508d7ae44f605565208c29a..3d3f837a4c49be5a32e95c77defb240ba61516e0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -52,6 +52,7 @@ PHP                                                                        NEWS
   enabled). (Ilia)
 - Fixed bug #42699 (PHP_SELF duplicates path). (Dmitry)
 - Fixed bug #42643 (CLI segfaults if using ATTR_PERSISTENT). (Ilia)
+- Fixed bug #42637 (SoapFault : Only http and https are allowed). (Bill Moran)
 - Fixed bug #42629 (Dynamically loaded PHP extensions need symbols exported
   on MacOSX). (jdolecek at NetBSD dot org)
 - Fixed bug #42627 (bz2 extension fails to build with -fno-common).
index 40bba74d61b0b4a658faad974b8dfaf978b8835d..dfebed2dde6b3a8569981b6a9576387e6a21daee 100644 (file)
@@ -918,7 +918,7 @@ try_again:
                                efree(http_body);
                                efree(loc);
                                if (new_url->scheme == NULL && new_url->path != NULL) {
-                                       new_url->scheme = NULL;
+                                       new_url->scheme = phpurl->scheme ? estrdup(phpurl->scheme) : NULL;
                                        new_url->host = phpurl->host ? estrdup(phpurl->host) : NULL;
                                        new_url->port = phpurl->port;
                                        if (new_url->path && new_url->path[0] != '/') {