From:             m dot leuffen at i-line dot net
Operating system: Linux
PHP version:      5.0.3
PHP Bug Type:     SOAP related
Bug description:  No Error-Logging on SoapServer-Side

Description:
------------
When calling a Class by Soap, the SoapServer-Script seems to log/show no
errors.

On fatal error occuring in the Server, the client will recieve a SoapFault
with the Error-Description but Line-Number of the Client-Call.

SoapClient::__getLastResponse() contains no error-output from Server.

Reproduce code:
---------------
// The Server (testServer.php)
<?PHP
        class test {
                
                public function testMe () {
                        unknown_function();
                }       
        }
        
$obj = new SoapServer(null, array ("uri"=>"http://test-uri/";));
$obj->setClass("test");
$obj->handle();
?>

// The Client (testClient.php)
<?PHP
$obj = new SoapClient(null, array ('location' =>
"http://url.to/testServer.php","uri"=>"http://test-uri/";, 'trace'=>1));
$obj->testMe ();

?>

Expected result:
----------------
Any error logging (in php error logfile):

PHP Fatal error: Call to undefined function unknown_function() in
testServer.php:5

and any direct error-output from the SoapServer-Script. (to access
directly by using SoapClient::__getLastResponse())

Actual result:
--------------
No logging of the error occured in testServer.php.
Only Html-Output and Log-entry from the uncaught exception in
testClient.php:

Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] Call to
undefined function unknown_function() in /testClient.php:4 Stack trace: #0
/testClient.php(4): SoapClient->testMe('testMe', Array) #1 {main} thrown in
/testClient.php on line 4


-- 
Edit bug report at http://bugs.php.net/?id=31422&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31422&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31422&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31422&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31422&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31422&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31422&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31422&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31422&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31422&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31422&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31422&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31422&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31422&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31422&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31422&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31422&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31422&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31422&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31422&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31422&r=mysqlcfg

Reply via email to