ID: 49045 Updated by: j...@php.net Reported By: kelvin at netbasic dot co dot uk -Status: Open +Status: Feedback Bug Type: SOAP related Operating System: Centos 4.7 and 5.3 PHP Version: 5.3.0 New Comment:
Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ I believe this should be fixed now. And really had nothing to do with SOAP extension itself. :) Previous Comments: ------------------------------------------------------------------------ [2009-07-24 13:27:07] kelvin at netbasic dot co dot uk Hi, This the backtrace run from the commandline php (Seems our apache config doesn't work to well with gdb) #0 0x0075df2d in strncasecmp () from /lib/libc.so.6 #1 0x006bee4b in curl_strnequal () from /usr/lib/libcurl.so.3 #2 0x006a519c in ?? () from /usr/lib/libcurl.so.3 #3 0x006a6d59 in Curl_http () from /usr/lib/libcurl.so.3 #4 0x006b2810 in Curl_do () from /usr/lib/libcurl.so.3 #5 0x006c190b in ?? () from /usr/lib/libcurl.so.3 #6 0x006c1e9c in curl_multi_perform () from /usr/lib/libcurl.so.3 #7 0x08148b90 in php_curl_stream_read (stream=0x912fde8, buf=0x9130964 "\\\t\023\t\\\t\023\tì·ü\b", count=8192) at /root/t/php- 5.3.0/ext/curl/streams.c:184 #8 0x083373b6 in php_stream_fill_read_buffer (stream=0x912fde8, size=4000) at /root/t/php-5.3.0/main/streams/streams.c:562 #9 0x08337653 in _php_stream_read (stream=0x912fde8, buf=0x91b5d90 "", size=4000) at /root/t/php-5.3.0/main/streams/streams.c:605 #10 0x04690870 in xmlParserInputBufferGrow () from /usr/lib/libxml2.so.2 #11 0x04669331 in xmlParserInputGrow () from /usr/lib/libxml2.so.2 #12 0x0466d3fc in ?? () from /usr/lib/libxml2.so.2 #13 0x0467f0bc in xmlParseDocument () from /usr/lib/libxml2.so.2 #14 0x08258e37 in soap_xmlParseFile (filename=0x912f30c "http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL") at /root/t/php-5.3.0/ext/soap/php_xml.c:100 #15 0x0824b611 in load_wsdl_ex (this_ptr=0x912ed48, struri=0x912f30c "http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL", ctx=0xbfb69450, include=0) at /root/t/php-5.3.0/ext/soap/php_sdl.c:240 #16 0x08256979 in get_sdl (this_ptr=0x912ed48, uri=0x912f30c "http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL", cache_wsdl=<value optimized out>) at /root/t/php- 5.3.0/ext/soap/php_sdl.c:654 #17 0x082268c1 in zim_SoapClient_SoapClient (ht=1, return_value=0x912f870, return_value_ptr=0x0, this_ptr=0x912ed48, return_value_used=0) at /root/t/php-5.3.0/ext/soap/soap.c:2671 #18 0x0838b3b6 in zend_do_fcall_common_helper_SPEC (execute_data=0x9162688) at /root/t/php- 5.3.0/Zend/zend_vm_execute.h:313 #19 0x0838a838 in execute (op_array=0x912f204) at /root/t/php- 5.3.0/Zend/zend_vm_execute.h:104 #20 0x0836e58b in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/t/php-5.3.0/Zend/zend.c:1188 #21 0x08327ed3 in php_execute_script (primary_file=0xbfb6cc50) at /root/t/php-5.3.0/main/main.c:2196 #22 0x083e4e9c in main (argc=2, argv=0xbfb6cd44) at /root/t/php- 5.3.0/sapi/cli/php_cli.c:1188) ------------------------------------------------------------------------ [2009-07-24 11:48:48] fel...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2009-07-24 08:49:18] kelvin at netbasic dot co dot uk Description: ------------ The PHP 5.3 SoapClient seems to have trouble connecting to certain services, we use a lot of 3rd party SOAP web services and have no issues using them with PHP 5.2.x, but 5.3 seems to have problems with around 50% of them. The problem seems to occur mostly upon instantiation of the SoapClient when using a Windows based service with a WSDL, as far I can tell it doesn't like the initial response. Reproduce code: --------------- $url = 'http://webservices.data-8.co.uk/TelephoneValidation.asmx?WSDL'; echo "creating client..<Br>"; $client = new SoapClient($url); echo "client created.."; Expected result: ---------------- You would see the output below, and have a useable SoapClient object: creating client.. client created.. Actual result: -------------- Nothing will be returned and you will get an seg fault error in the Apache logs. [Fri Jul 24 09:37:10 2009] [notice] child pid 17265 exit signal Segmentation fault (11) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49045&edit=1