From: Operating system: Linux 2.6.18.8-xenU PHP version: 5.3.3 Package: SOAP related Bug Type: Bug Bug description:fastcgi & SoapClient & set_error_handler cause core
Description: ------------ I use apache2.0 & fastcgi, and the Network for me is unreachable. When I try to new the SoapClient the first time. I get this: [soapclient.soapclient]: failed to open stream: Network is unreachable It seems ok. But then I try the second(or third) time, I get a core. The way I started the fastcgi: PHP_FCGI_CHILDREN=1 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=5000 export PHP_FCGI_MAX_REQUESTS exec php/bin/php-cgi -b 127.0.0.1:7654 -c php/etc/php.ini Test script: --------------- <?php function err_handler(){ $error = func_get_args(); echo $error[0]." ".$error[1]." ".$error[2]." ".$error[3]."\n"; exit; //If I change exit to return ****,there is no core. // return true; } set_error_handler('err_handler'); //nomatter which the wsdl file is. $client = new SoapClient("http://www.google.com:8080/hello.WSDL"); ?> Expected result: ---------------- [soapclient.soapclient]: failed to open stream: Network is unreachable Actual result: -------------- #0 0x000000302af6ff20 in strlen () from /lib64/tls/libc.so.6 #1 0x00000000006ff8f6 in php_stream_display_wrapper_errors (wrapper=0xdcb3e0, path=Variable "path" is not available. ) at /home/mall/src/php-5.3.3/main/streams/streams.c:151 #2 0x0000000000702c72 in _php_stream_open_wrapper_ex (path=0xfc4c50 "http://www.google.com:8080/hello.WSDL", mode=0x822303 "rb", options=8, opened_path=0x0, context=0x2b8fd8d23b18) at /home/mall/src/php-5.3.3/main/streams/streams.c:1941 #3 0x000000000048c74b in php_libxml_streams_IO_open_wrapper (filename=Variable "filename" is not available. ) at /home/mall/src/php-5.3.3/ext/libxml/libxml.c:317 #4 0x000000000048c8be in php_libxml_input_buffer_create_filename (URI=Variable "URI" is not available. ) at /home/mall/src/php-5.3.3/ext/libxml/libxml.c:326 #5 0x000000302d72aff4 in xmlNewInputFromFile () from /usr/lib64/libxml2.so.2 #6 0x000000302d735348 in xmlLoadExternalEntity () from /usr/lib64/libxml2.so.2 #7 0x000000302d7352bd in xmlLoadExternalEntity () from /usr/lib64/libxml2.so.2 #8 0x000000302d74425c in xmlCreateURLParserCtxt () from /usr/lib64/libxml2.so.2 #9 0x0000000000616509 in soap_xmlParseFile (filename=Variable "filename" is not available. ) at /home/mall/src/php-5.3.3/ext/soap/php_xml.c:91 #10 0x00000000006083a7 in load_wsdl_ex (this_ptr=0x2b8fd8d23110, struri=0x2b8fd8d25f18 "http://www.google.com:8080/hello.WSDL", ctx=0x7fffd2215bd0, include=0) at /home/mall/src/php-5.3.3/ext/soap/php_sdl.c:299 #11 0x000000000061438b in get_sdl (this_ptr=0x2b8fd8d23110, uri=0x2b8fd8d25f18 "http://www.google.com:8080/hello.WSDL", cache_wsdl=Variable "cache_wsdl" is not available. ) at /home/mall/src/php-5.3.3/ext/soap/php_sdl.c:714 #12 0x00000000005ded29 in zim_SoapClient_SoapClient (ht=1, return_value=Variable "return_value" is not available. ) at /home/mall/src/php-5.3.3/ext/soap/soap.c:2674 #13 0x0000000000760340 in zend_do_fcall_common_helper_SPEC (execute_data=0x2b8fdbcfc050) at /home/mall/src/php-5.3.3/Zend/zend_vm_execute.h:316 #14 0x000000000075f839 in execute (op_array=0x2b8fd8d23140) at /home/mall/src/php-5.3.3/Zend/zend_vm_execute.h:107 #15 0x000000000073e985 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/mall/src/php-5.3.3/Zend/zend.c:1194 #16 0x00000000006eea58 in php_execute_script (primary_file=0x7fffd221b9d0) at /home/mall/src/php-5.3.3/main/main.c:2260 #17 0x00000000007c3a80 in main (argc=5, argv=0x7fffd221bb58) at /home/mall/src/php-5.3.3/sapi/cgi/cgi_main.c:2109 -- Edit bug report at http://bugs.php.net/bug.php?id=52922&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52922&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52922&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52922&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52922&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52922&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52922&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52922&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52922&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52922&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52922&r=support Expected behavior: http://bugs.php.net/fix.php?id=52922&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52922&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52922&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52922&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52922&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52922&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52922&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52922&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52922&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52922&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52922&r=mysqlcfg