From: rsumibcay at reddoor dot biz Operating system: Ubuntu Linux PHP version: 5.2.12 PHP Bug Type: SOAP related Bug description: SoapServer Fatal errror in WSDL mode
Description: ------------ SoapServer dies with fatal error in WSDL mode when a soap argument is a ComplexType with a member defined as int in the XSD, but the member value is passed as a non-numeric string. Reproduce code: --------------- 1. Define a ComplexType with an int data member: http://crkt190.reddoor.biz/fatalerror/complex_types.xsd 2. Define a WSDL that uses the ComplexType as an argument to the soap function: http://crkt190.reddoor.biz/fatalerror/fatalerror.wsdl 3. Create a soap envelope with a non-numeric string as the value for the int data member: http://crkt190.reddoor.biz/fatalerror/fatalerror-soap-envelope.xml 4. Make a soap request using the soap envelope in step 3. Expected result: ---------------- The SoapServer should not die with a fatal error. The SoapServer should respond with a SoapFault, or let the call pass through so the business logic (mapped handler) can do validation and handle the error appropriately. Actual result: -------------- 500 HTTP response from server. The HTTP response body contains an error message and stack trace. Fatal error: SOAP-ERROR: Encoding Violation of encoding rules in ... -- Edit bug report at http://bugs.php.net/?id=50547&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50547&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50547&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50547&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50547&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50547&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50547&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50547&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50547&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50547&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50547&r=support Expected behavior: http://bugs.php.net/fix.php?id=50547&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50547&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50547&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50547&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50547&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50547&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50547&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50547&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50547&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50547&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50547&r=mysqlcfg
