ID: 48216 Comment by: nadavkav at gmail dot com Reported By: mark at everytruckjob dot com Status: No Feedback Bug Type: SOAP related Operating System: CentOs 5.3 PHP Version: 5.3.0RC2 New Comment:
similar issue, on Debian unstable , PHP/5.3.0-3 laptop:/var/www/moodle-weekly/wspp/clients# ./mkclasses.sh PHP Notice: Undefined offset: 2 in /var/www/moodle- weekly/wspp/wsdl2php.php on line 84 PHP Notice: Undefined offset: 2 in /var/www/moodle- weekly/wspp/wsdl2php.php on line 85 PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost/moodle-weekly/wspp/wsdl_pp.php' : Extra content at the end of the document in /var/www/moodle-weekly/wspp/wsdl2php.php on line 88 SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost/moodle-weekly/wspp/wsdl_pp.php' : Extra content at the end of the document in /var/www/moodle-weekly/wspp/wsdl2php.php:88 Stack trace: #0 /var/www/moodle-weekly/wspp/wsdl2php.php(88): SoapClient- >SoapClient('http://localhos...') #1 {main}laptop:/var/www/moodle-weekly/wspp/clients# Previous Comments: ------------------------------------------------------------------------ [2009-10-15 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-10-07 18:31:10] sjo...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2009-10-07 18:29:40] sjo...@php.net I tested using the HTTP trace Robert Ripley sent. I discovered some things: Libxml uses the PHP stream wrappers to load the WSDL. These stream wrappers return a malformed WSDL to libxml. This is not specific to SOAP. Running file_get_contents($wsdl) also returns a malformed WSDL. It is reproducible with PHP 5.3 but not with PHP 5.3-HEAD. This suggests that this bug has already been fixed. ------------------------------------------------------------------------ [2009-10-06 17:09:14] robert dot ripley at fhchs dot edu I'm also experiencing the same problem. Here is the HTTP header of the WSDL: HTTP/1.1 200 OK\r\n Date: Tue, 06 Oct 2009 16:48:26 GMT\r\n Server: Apache/2.2.8 (Win32) PHP/5.2.5\r\n X-Powered-By: PHP/5.2.5\r\n Expires: Wed, 06 Oct 2010 04:00:00 GMT\r\n Cache-Control: no-store, no-cache, must-revalidate\r\n Pragma: no-cache\r\n Last-Modified: Tue, 06 Oct 2009 16:48:26 GMT\r\n Cache-Control: post-check=0, pre-check=0\r\n Vary: User-Agent\r\n Keep-Alive: timeout=5, max=100\r\n Connection: Keep-Alive\r\n Transfer-Encoding: chunked\r\n Content-Type: application/xml;\r\n \r\n ------------------------------------------------------------------------ [2009-09-18 16:39:44] boris dot t at usask dot ca it seems that X-Powered-By: is causing problems. The same problem exists when HTTP/1.x 200 OK Date: Fri, 18 Sep 2009 16:24:06 GMT X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0 Content-Type: text/xml;charset=utf-8 Connection: close Transfer-Encoding: chunked and the same code works when HTTP/1.x 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Transfer-Encoding: chunked Date: Fri, 18 Sep 2009 16:23:28 GMT ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/48216 -- Edit this bug report at http://bugs.php.net/?id=48216&edit=1