Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94656 invoked by uid 1010); 11 Apr 2007 14:05:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94641 invoked from network); 11 Apr 2007 14:05:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Apr 2007 14:05:58 -0000 X-Host-Fingerprint: 195.225.34.5 fw01.axit.nl Received: from [195.225.34.5] ([195.225.34.5:25910] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/A0-18117-44BEC164 for ; Wed, 11 Apr 2007 10:05:57 -0400 Message-ID: To: internals@lists.php.net References: <4E.0E.22806.CA5DC164@pb1.pair.com> <461CE9FD.4070108@pooteeweet.org> Date: Wed, 11 Apr 2007 16:04:47 +0200 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response X-Posted-By: 195.225.34.5 Subject: Re: [PHP-DEV] is this a bug in SoapServer? From: r.korving@xit.nl ("Ron Korving") 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" 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