ID:               36226
 Updated by:       [EMAIL PROTECTED]
 Reported By:      say_ten at multiplay dot co dot uk
-Status:           No Feedback
+Status:           Open
 Bug Type:         SOAP related
 Operating System: FreeBSD 6.0-p4
 PHP Version:      5.1.2
 Assigned To:      dmitry
 New Comment:

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. 


Previous Comments:
------------------------------------------------------------------------

[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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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.

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

[2006-02-02 12:42:40] [EMAIL PROTECTED]

This is not a bug but feature.
I stayed the default behavior unchanged, but added ability to create
arrays even if only one element exists.
To create arrays with single element, you should use special option in
SoapServer/SoapClient constructor.

$x = new SoapClient($wsdl, array('features' =>
SOAP_SINGLE_ELEMENT_ARRAYS));

Fixed in CVS HEAD and PHP_5_1.

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

[2006-01-31 15:45:34] [EMAIL PROTECTED]

Assigned to the maintainer.

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

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
    http://bugs.php.net/36226

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

Reply via email to