From: Operating system: All PHP version: 5.3.3 Package: SOAP related Bug Type: Bug Bug description:SoapClient() with location param should work with WSDLs with all bad endpoints
Description: ------------ Apologies for the somewhat obtuse title, the character limit made it hard to be clearer. This is somewhat related to #50698, opened and fixed by me. If you have a WSDL that only advertises non-HTTP endpoints, or no endpoints at all, but you specify a http endpoint the location parameter of the SoapClient() constructor, the SoapClient constructor should return successfully. Furthermore, it should not attempt to parse the endpoints. Test script: --------------- #At a testfest now. Test with wsdl will be submitted soon: --TEST-- Request (SoapClient should handle wsdls with all incompatiable endpoint if you specify and endpoint in the SoapClient() constructor. Edgecase not handled in bug #50698). --CREDITS-- Justin Dearing <zippy1...@gmail.com> # TestFest 2010 BKTK --SKIPIF-- <?php require_once('skipif.inc'); ?> --INI-- soap.wsdl_cache_enabled=0 --FILE-- <?php new SoapClient(dirname(__FILE__) . '/bug50698_3.wsdl', Array('location' => 'http://127.0.0.1/foo.php')); echo "ok\n"; ?> --EXPECT-- ok Expected result: ---------------- ok Actual result: -------------- PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from '/home/zippy/src/testfest/ext/soap/tests/bugs/bug50698_3.wsdl' : failed to load external entity "/home/zippy/src/testfest/ext/soap/tests/bugs/bug50698_3.wsdl" in /home/zippy/src/testfest/ext/soap/tests/bugs/new.php on line 2 PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '/home/zippy/src/testfest/ext/soap/tests/bugs/bug50698_3.wsdl' : failed to load external entity "/home/zippy/src/testfest/ext/soap/tests/bugs/bug50698_3.wsdl" in /home/zippy/src/testfest/ext/soap/tests/bugs/new.php:2 Stack trace: #0 /home/zippy/src/testfest/ext/soap/tests/bugs/new.php(2): SoapClient- >SoapClient('/home/zippy/src...', Array) #1 {main} thrown in /home/zippy/src/testfest/ext/soap/tests/bugs/new.php on line 2 -- Edit bug report at http://bugs.php.net/bug.php?id=52724&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52724&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52724&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52724&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52724&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52724&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52724&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52724&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52724&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52724&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52724&r=support Expected behavior: http://bugs.php.net/fix.php?id=52724&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52724&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52724&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52724&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52724&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52724&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52724&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52724&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52724&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52724&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52724&r=mysqlcfg