ID: 39140 Updated by: [EMAIL PROTECTED] Reported By: harry at telappliant dot com -Status: Open +Status: Feedback Bug Type: SOAP related Operating System: Linux 2.6.15-vs2.0.1-gentoo-r5 PHP Version: 5.1.6 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-10-12 18:05:54] harry at telappliant dot com 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 this bug report at http://bugs.php.net/?id=39140&edit=1