#46548 [Opn]: NULL return values in complex objects are not returned
| From: | rob at kinesissurvey dot com | Date: | Tue, 11 Nov 2008 17:45:59 +0000 |
| Subject: | #46548 [Opn]: NULL return values in complex objects are not returned | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130895@lists.php.net to get a copy of this message | ||
ID: 46548
User updated by: rob at kinesissurvey dot com
Reported By: rob at kinesissurvey dot com
Status: Open
Bug Type: SOAP related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
The wsdl file moved, so please ignore that link. The wsdl is included
in the zip file, anyway.
Previous Comments:
------------------------------------------------------------------------
[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