From: ch Operating system: PHP version: 5.4.0alpha3 Package: SOAP related Bug Type: Bug Bug description:SoapFault is missing methods to get the Fault Code
Description: ------------ The SoapFault object does not have a getFaultCode() method nor does it set the exception code to the received SOAP fault code. The code is available through the undocumented public property "faultcode" though. I would suggest setting the Exception code to the SOAP fault code. Backwards compatibility shouldn't be a big problem because currently, the code can only be 0 as the constructor does not even makes it possible to change it. If you disagree, I'd like to see a getFaultCode() method at least. Having access to the SOAP fault code is essential as SOAP does not transfer the Exception class name and thus there is no other way to cleanly distinguish between different kinds of exceptions. -- Edit bug report at https://bugs.php.net/bug.php?id=55567&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55567&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55567&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55567&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55567&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55567&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55567&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55567&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55567&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55567&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55567&r=support Expected behavior: https://bugs.php.net/fix.php?id=55567&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55567&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55567&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55567&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55567&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55567&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55567&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55567&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55567&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55567&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55567&r=mysqlcfg