From: mark at everytruckjob dot com Operating system: CentOs 5.3 PHP version: 5.3.0RC2 PHP Bug Type: SOAP related Bug description: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
Description: ------------ Trying to set up a soapClient using the wsdl from the location found in http://www.everytruckjob.com/php53-url.txt (this contains the url and is not the wsdl file itself so I can remove the location once this report is closed as it is not my soap server). Copying the wsdl from the referenced location to my own (http://www.everytruckjob.com/wsdl.php) or saving it to a local file allows parsing to succeed, but while the file sizes seem to be the same, I can't figure out what headers or content causes the "Extra content at the end of the document" error. This works as expected on php 5.2.9 compiled and in use on the same client server with Centos 5.3 libxml2.x86_64 2.6.26-2.1.2.7. Reproduce code: --------------- <?php $wsdl = trim(file_get_contents('http://www.everytruckjob.com/php53-url.txt')); try { $a = new SoapClient($wsdl); } catch (SoapFault $e) { var_dump(libxml_get_last_error()); var_dump($e); } ?> Expected result: ---------------- No SoapFault Actual result: -------------- object(LibXMLError)#1 (6) { ["level"]=> int(3) ["code"]=> int(5) ["column"]=> int(4) ["message"]=> string(41) "Extra content at the end of the document " ["file"]=> string(55) "http://XXXX" ["line"]=> int(488) } object(SoapFault)#2 (9) { ["message":protected]=> string(146) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'XXXXX' : Extra content at the end of the document " -- Edit bug report at http://bugs.php.net/?id=48216&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48216&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48216&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48216&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48216&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48216&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48216&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48216&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48216&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48216&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48216&r=support Expected behavior: http://bugs.php.net/fix.php?id=48216&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48216&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48216&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48216&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48216&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48216&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48216&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48216&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48216&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48216&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48216&r=mysqlcfg
