From: richard at rjharrison dot org Operating system: linux PHP version: 5.3.0 PHP Bug Type: SOAP related Bug description: SoapServer failing on construction (cannot load wsdl)
Description: ------------ SoapServer is failing on construction. I pass an URL with *valid* WSDL xml, which is generated automatically. - If I save the WSDL locally and load from disk it works. - If I serve the WSDL remotely from a static .xml file it works. - If I load the WSDL-url in my browser I get a well-formed XML response. - I can access the dodgy-wsdl URL via file_get_contents. - Using 5.2.6 on another machine it works fine. I inspected the http requests and think it could be related to chunked encoding (it fails on the chunked encoding response). Reproduce code: --------------- <?php $url = 'http://myserver/path?wsdl'; $serv = new SoapServer($url); ?> I can probably provide a sample url privately. Expected result: ---------------- $serv to be instantiated Actual result: -------------- SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://myserver/path?wsdl' : Premature end of data in tag definitions line 2 Below are the headers of the response that fails:- Date: Tue, 11 Aug 2009 19:15:29 GMT Server: Apache/2.2.8 (Unix) DAV/2 PHP/5.3.0 X-powered-by: PHP/5.3.0 Vary: Accept-Encoding,User-Agent Connection: close Transfer-encoding: chunked Content-type: text/xml -- Edit bug report at http://bugs.php.net/?id=49226&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49226&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49226&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49226&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49226&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49226&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49226&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49226&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49226&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49226&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49226&r=support Expected behavior: http://bugs.php.net/fix.php?id=49226&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49226&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49226&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49226&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49226&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49226&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49226&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49226&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49226&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49226&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49226&r=mysqlcfg