From:             ch
Operating system: any
PHP version:      5.3.3
Package:          SOAP related
Bug Type:         Feature/Change Request
Bug description:SoapServer->handle() should optionally throw Exception

Description:
------------
When using SoapServer->handle() an exception that is thrown somewhere in
the

handled object is immediately converted to a SoapFault and printed on
stdout.

There is no way to catch that exception and e.g. print a warning with its
stack trace to the server logfile.



It would be nice if e.g. SoapServer::__construct() would get an additional
option that tells handle to just pass Exceptions. It would then be up to
the

programmer to catch and handle them. Of course, for that to work there
would have to be a new API function that can output the exception with the
correct SOAP headers as currently soap_server_fault_ex() from soap.c does.



Test script:
---------------
-

Expected result:
----------------
-

Actual result:
--------------
-

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53042&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53042&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53042&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53042&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53042&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53042&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53042&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53042&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53042&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53042&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53042&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53042&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53042&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53042&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53042&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53042&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53042&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53042&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53042&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53042&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53042&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53042&r=mysqlcfg

Reply via email to