From: Dmitry Stogov Date: Wed, 17 Oct 2007 11:17:46 +0000 (+0000) Subject: Fixed bug #42637 (SoapFault : Only http and https are allowed) X-Git-Tag: php-5.2.5RC1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82264b0b45628f55e3b8b75cf44876dcd9f1fb54;p=php Fixed bug #42637 (SoapFault : Only http and https are allowed) --- diff --git a/NEWS b/NEWS index d4cd25cd1a..3d3f837a4c 100644 --- 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). diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 40bba74d61..dfebed2dde 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -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] != '/') {