From: mail at martin-probst dot com Operating system: Mac OS X PHP version: 5.2.0 PHP Bug Type: SOAP related Bug description: SOAP messages contain empty tags
Description: ------------ When using a Web Service and passing it a PHP object that contains NULL fields, these fields end up as empty tags in the message Reproduce code: --------------- no easy code, but when using a web service that expects a document style message, e.g. <foo> <bar>...</bar> </foo> And passing an object class Foo { public $bar = 'hello'; public $baz; } The XML created is something like: ... <SOAP-ENV:Body> <message-name> <foo> <bar>Hello</bar> <baz/> </foo> </message-name> </SOAP-ENV:Body> Expected result: ---------------- The message should be: <SOAP-ENV:Body> <message-name> <foo> <bar>Hello</bar> </foo> </message-name> </SOAP-ENV:Body> Actual result: -------------- The message is: <SOAP-ENV:Body> <message-name> <foo> <bar>Hello</bar> <baz/> </foo> </message-name> </SOAP-ENV:Body> -- Edit bug report at http://bugs.php.net/?id=40361&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40361&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40361&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40361&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40361&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40361&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40361&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40361&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40361&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40361&r=support Expected behavior: http://bugs.php.net/fix.php?id=40361&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40361&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40361&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40361&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40361&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40361&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40361&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40361&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40361&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40361&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40361&r=mysqlcfg