Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19821 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37191 invoked by uid 1010); 29 Oct 2005 20:30:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37176 invoked from network); 29 Oct 2005 20:30:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2005 20:30:34 -0000 Received: from ([127.0.0.1:19177]) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with ECSTREAM id 6A/A9-02082-AEBD3634 for ; Sat, 29 Oct 2005 16:30:34 -0400 X-Host-Fingerprint: 69.93.244.106 unknown Linux 2.4/2.6 Received: from ([69.93.244.106:35409] helo=mail.academyoflearning.ca) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E0/58-02082-957D3634 for ; Sat, 29 Oct 2005 16:11:05 -0400 Received: from d207-81-249-35.bchsia.telus.net ([207.81.249.35] helo=ipso.snappymail.ca) by mail.academyoflearning.ca with esmtpa (Exim 4.44) id 1EVx2b-0001Mb-Ct for internals@lists.php.net; Sat, 29 Oct 2005 13:11:01 -0700 To: internals@lists.php.net Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Z+3nxvkG/bok1MJFtrBB" Date: Sat, 29 Oct 2005 13:10:44 -0700 Message-ID: <1130616645.16497.168.camel@ipso.snappymail.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1-2mdk Subject: Bug in SOAP extension... Re-Keying arrays? From: ipso@snappymail.ca (Mike Benoit) --=-Z+3nxvkG/bok1MJFtrBB Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I searched bugs.php.net but couldn't find anything relating to this issue. Unfortunately I am unable to test with versions newer than PHP 5.0.4 right now, so forgive me if this has already been addressed. It seems that if the SOAP extension can cast the first key of an array to an INT, it re-keys the entire array. As well it seems to strip any NULL values from the array, regardless of what the key is. Which seems strange, but for a workaround to this issue it serves me well. IN =3D PHP Server sends OUT =3D PHP Client receives IN: array( 10 =3D> 'Test1', 20 =3D> 'Test2'); OUT: array(2) { [0]=3D> string(5) "Test1" [1]=3D> string(5) "Test2" } IN: array( '10' =3D> 'Test1', '20' =3D> 'Test2'); OUT: array(2) { [0]=3D> string(5) "Test1" [1]=3D> string(5) "Test2" } IN: array( '_' =3D> '', 10 =3D> 'Test1', 20 =3D> 'Test2'); OUT: array(3) { ["_"]=3D> string(0) "" [10]=3D> string(5) "Test1" [20]=3D> string(5) "Test2" } IN: array( '_' =3D> NULL, 10 =3D> 'Test1', 20 =3D> 'Test2'); OUT: array(2) { [10]=3D> string(5) "Test1" [20]=3D> string(5) "Test2" } --=20 Mike Benoit --=-Z+3nxvkG/bok1MJFtrBB Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDY9dEMhKjsejwBhgRAmcNAJ9Zoc2vmVQlcyq6BnKvsTOa0kmw1QCghzs+ /jXHeRkIxjSR1odA0cgfU1I= =A8vU -----END PGP SIGNATURE----- --=-Z+3nxvkG/bok1MJFtrBB--