Edit report at https://bugs.php.net/bug.php?id=36226&edit=1

 ID:                 36226
 Comment by:         a at b dot com
 Reported by:        say_ten at multiplay dot co dot uk
 Summary:            Inconsistent handling when passing potential arrays.
 Status:             Closed
 Type:               Bug
 Package:            SOAP related
 Operating System:   FreeBSD 6.0-p4
 PHP Version:        5.1.2
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

@dmitry: Can you explain why you consider inconsistent behaviour a feature?


Previous Comments:
------------------------------------------------------------------------
[2007-03-20 07:52:09] dmi...@php.net

Fixed in CVS HEAD and PHP_5_2.

------------------------------------------------------------------------
[2007-03-18 10:15:18] lsm...@php.net

Ah ok .. I finally had the genius idea of searching the existing test cases for 
one that covers my issues. Since I am a phpt n00b, I ripped the code instead of 
simply updating the test case. The code should be similar enough for you to 
recognize from the test case for Bug 
#36226.

http://pooteeweet.org/public/SOAP_SINGLE_ELEMENT_ARRAYS.phps

I
 did a minor change to the wsdl to allow nillable for the 
sequence.

http://pooteeweet.org/public/bug35142.wsdl

Would
 be nice to have that one fixed for php 5.2.2.

So the issue 
is that I end up with an array(null) for logOnEvent instead of simply null. 

------------------------------------------------------------------------
[2007-02-23 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2007-02-15 15:47:30] dmi...@php.net

Could you please provide a working example with expected output. I cannot 
imagine the situation when ext/soap will return array(null) for unexisting XML 
elements.

------------------------------------------------------------------------
[2007-02-08 15:32:19] lsm...@php.net

Enabling this feature seems to result in giving me an array(null) if I have a 
nill'ed sequence. Not sure if this is why you originally introduced the feature 
of not returning single element sequences as array's, but I was hoping to get 
an empty array in the above case.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=36226


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=36226&edit=1

Reply via email to