From:             rob at kinesissurvey dot com
Operating system: Linux
PHP version:      5.2.6
PHP Bug Type:     SOAP related
Bug description:  NULL return values in complex objects are not returned

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 bug report at http://bugs.php.net/?id=46548&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46548&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46548&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46548&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46548&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46548&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46548&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46548&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46548&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46548&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46548&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46548&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46548&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46548&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46548&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46548&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46548&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46548&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46548&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46548&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46548&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46548&r=mysqlcfg

Reply via email to