From: harry at telappliant dot com Operating system: Linux 2.6.15-vs2.0.1-gentoo-r5 PHP version: 5.1.6 PHP Bug Type: SOAP related Bug description: SoapServer causes segfault in specific conditions.
Description: ------------ when using use_soap_error_handler and a soap server & client without wsdl the soap server bombs if an exception is thrown! Reproduce code: --------------- # test.php <?php class TestClass { public function getCallLog( ) { throw new Exception("bugger"); } } use_soap_error_handler(TRUE); $server = new SoapServer( NULL, array('uri' => 'http://example.com') ); $server->setClass('TestClass'); $server->handle(); ?> # test-client.php <?php $params = array( 'style' => SOAP_RPC, 'use' => SOAP_ENCODED, 'uri' => 'http://192.168.254.72/soapb$ $client = new SoapClient( NULL, $params ); $blah = $client->getCallLog( array() ); print_r($blah); ?> Expected result: ---------------- The exception being passed back to the client. Actual result: -------------- The server-side bombs. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1213290816 (LWP 8597)] 0xb74122e2 in zend_get_executed_lineno () from /usr/lib/apache2/modules/libphp5.so (gdb) bt #0 0xb74122e2 in zend_get_executed_lineno () from /usr/lib/apache2/modules/libphp5.so #1 0xbfb21e18 in ?? () #2 0xb7434152 in zend_clear_exception () from /usr/lib/apache2/modules/libphp5.so #3 0xb7434152 in zend_clear_exception () from /usr/lib/apache2/modules/libphp5.so #4 0xb74341db in zend_clear_exception () from /usr/lib/apache2/modules/libphp5.so #5 0xb74227dd in _object_and_properties_init () from /usr/lib/apache2/modules/libphp5.so #6 0xb742288a in _object_init_ex () from /usr/lib/apache2/modules/libphp5.so #7 0xb72fc097 in zif_SoapClient___setLocation () from /usr/lib/apache2/modules/libphp5.so #8 0xb72ff61b in zif_SoapServer_fault () from /usr/lib/apache2/modules/libphp5.so #9 0xb7435bcc in zend_throw_error_exception () from /usr/lib/apache2/modules/libphp5.so #10 0xb7435d74 in zend_exception_error () from /usr/lib/apache2/modules/libphp5.so #11 0xb74206aa in zend_execute_scripts () from /usr/lib/apache2/modules/libphp5.so #12 0xb73ddcbb in php_execute_script () from /usr/lib/apache2/modules/libphp5.so #13 0xb74aa20e in zend_get_zval_ptr_ptr () from /usr/lib/apache2/modules/libphp5.so #14 0x08068ed5 in ap_run_handler () #15 0x0806934c in ap_invoke_handler () #16 0x08066118 in ap_process_request () #17 0x08060fd8 in _start () (gdb) -- Edit bug report at http://bugs.php.net/?id=39140&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39140&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39140&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39140&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39140&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39140&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39140&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39140&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39140&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39140&r=support Expected behavior: http://bugs.php.net/fix.php?id=39140&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39140&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39140&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39140&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39140&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39140&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39140&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39140&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39140&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39140&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39140&r=mysqlcfg