ID: 46548 Updated by: [EMAIL PROTECTED] Reported By: rob at kinesissurvey dot com -Status: Open +Status: Bogus Bug Type: SOAP related Operating System: Linux PHP Version: 5.2.6 New Comment:
Duplicated - Bug #46419 Previous Comments: ------------------------------------------------------------------------ [2008-11-11 17:45:58] rob at kinesissurvey dot com The wsdl file moved, so please ignore that link. The wsdl is included in the zip file, anyway. ------------------------------------------------------------------------ [2008-11-11 17:24:10] rob at kinesissurvey dot com Description: ------------ Null elements are ignored, instead of being returned as null. I believe this is the same as bug #41745; however, the bug system would not let me post my comment there (maybe because it's in "Feedback" status?), so I'm posting it here. Since this bug has existed for over a year, a new bug report probably won't hurt things. I have a small test case. This bug is still present in PHP 5.2.6, and based on the 5.3 alpha notes, it has not been fixed there yet, either. Reproduce code: --------------- http://web4.kinesissurvey.com/rproject/sv500/nullbugclient.php Notice the "status" key is missing from the second array element. The wsdl file being used is at: http://web4.kinesissurvey.com/rproject/sv500/wsdl/panel/nullbug.wsdl You can get the source at: http://web4.kinesissurvey.com/rproject/sv500/nullbug.zip Expected result: ---------------- Array ( [0] => Array ( [id] => 1 [name] => Survey number 1 [uri] => http://www.kinesissurvey.com/html.pro?ID=1 [status] => completed ) [1] => Array ( [id] => 2 [name] => Survey number 2 [uri] => http://www.kinesissurvey.com/html.pro?ID=2 [status] => ) ) Actual result: -------------- Array ( [0] => Array ( [id] => 1 [name] => Survey number 1 [uri] => http://www.kinesissurvey.com/html.pro?ID=1 [status] => completed ) [1] => Array ( [id] => 2 [name] => Survey number 2 [uri] => http://www.kinesissurvey.com/html.pro?ID=2 ) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46548&edit=1