Only http and https are allowed
| Bug #42637 | SoapFault : Only http and https are allowed | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2007-09-12 06:51 UTC | Modified: | 2007-10-17 11:20 UTC |
|
||||||||||
| From: | christof at sanmax dot be | Assigned: | dmitry (profile) | |||||||||||
| Status: | Closed | Package: | SOAP related | |||||||||||
| PHP Version: | 5.2.4 | OS: | Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2007-09-12 06:51 UTC] christof at sanmax dot be
Description: ------------ When sending a request with the SoapClient, a SoapFault is produced : Fatal error: Uncaught SoapFault exception: [HTTP] Unknown protocol. Only http and https are allowed. The probleem seems to be located in the php_url_parse_ex function. In version 5.1.6 it works fine, in 5.2.4 is does not. The php scheme is null instead of http according to our tests. Reproduce code: --------------- $base = 'http://<some soap service url>/service.asmx?WSDL'; $soap = new SoapClient($base, array('trace' => 1)); $login = new StdClass; $login->userName = 'test'; $login->passWord = 'test'; $login->languageCode = 'NL'; $loginResult = $soap->Login($login); Expected result: ---------------- no soapfault. In php 5.1.6 it works fine, no exception is thrown. Actual result: -------------- Fatal error: Uncaught SoapFault exception: [HTTP] Unknown protocol. Only http and https are allowed in /home/data/websites/www/phptest.php:10 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://demobet5...', 'http://XServer....', 1, 0) #1 [internal function]: SoapClient->__call('Login', Array) #2 /home/data/websites/www/phptest.php(10): SoapClient->Login(Object(stdClass)) #3 {main} thrown in /home/data/websites/www/phptest.php on line 10
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-09-27 16:04 UTC] wmoran at collaborativefusion dot com
[2007-09-27 16:19 UTC] wmoran at collaborativefusion dot com
[2007-09-28 15:45 UTC] wmoran at collaborativefusion dot com
[2007-09-28 17:02 UTC] wmoran at collaborativefusion dot com
[2007-10-17 11:20 UTC] dmitry@php.net