From: ianils at gmail dot com Operating system: PHP version: 5.2.5 PHP Bug Type: SOAP related Bug description: SOAPFault HTTP Status 500 - would like to be able to set the HTTP Status
Description: ------------ When using php web services with Adobe Flex/Flash/AIR , error handling is a major pain. If I have a simple web service that throws a SOAPFault , the http status code that is returned with the message is 500 . This is a problem because the Flash Player ignores any message that has a status code > 200. ( Which is understandable , status code 500 could mean the server is really in trouble ) . I would very much like to be able to set the 'status code' that is returned when a SOAP Fault is thrown . The flash player is clever enough to recognize a SOAP Error and therefore able to run the correct code from with the flash app , however this is only possible when it gets a HTTP Status code that is not > 200. Reproduce code: --------------- This is a feature request to be able to set the HTTP Error code that is returned from a SOAP Fault . Its not necessarily a bug with a PHP , other languages offer similar workarounds. -- Edit bug report at http://bugs.php.net/?id=43507&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43507&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43507&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43507&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43507&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43507&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43507&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43507&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43507&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43507&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43507&r=support Expected behavior: http://bugs.php.net/fix.php?id=43507&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43507&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43507&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43507&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43507&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43507&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43507&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43507&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43507&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43507&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43507&r=mysqlcfg
