Re: is this a bug in SoapServer?
| From: | Ron Korving | Date: | Wed, 11 Apr 2007 14:04:47 +0000 |
| Subject: | Re: is this a bug in SoapServer? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28732@lists.php.net to get a copy of this message | ||
But array('a' => 'Foo', 'b' => 'Bar') does end up
correctly. It only fails
with numeric keys. I'm using PHP 5.2.1 by the way.
Thanks,
Ron
"Lukas Kahwe Smith" <mls@pooteeweet.org> schreef in bericht
news:461CE9FD.4070108@pooteeweet.org...
> Ron Korving wrote:
>> Hi,
>>
>> returning array('5' => 'Foo', '10' => 'Bar')
>> from a SoapServer handler
>> class ends up as array(0 => 'Foo', 1 => 'Bar') at the client end.
>> I can
>> hardly imagine this being a feature, but maybe someone can tell me if
>> this is somehow wanted or inevitable behavior.
>
> I assume its because there is no such thing as an associative array, so
> the thing ends up being a simple ordered sequence.
>
> regards,
> Lukas