From: christof at sanmax dot be Operating system: Linux PHP version: 5.2.4 PHP Bug Type: SOAP related Bug description: SoapFault : Only http and https are allowed
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 -- Edit bug report at http://bugs.php.net/?id=42637&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42637&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42637&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42637&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42637&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42637&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42637&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42637&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42637&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42637&r=support Expected behavior: http://bugs.php.net/fix.php?id=42637&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42637&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42637&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42637&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42637&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42637&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42637&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42637&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42637&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42637&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42637&r=mysqlcfg