Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7538 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71187 invoked by uid 1010); 4 Feb 2004 14:15:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71123 invoked from network); 4 Feb 2004 14:15:16 -0000 Received: from unknown (HELO phoebe.host4u.net) (209.150.128.26) by pb1.pair.com with SMTP; 4 Feb 2004 14:15:16 -0000 Received: from ctdprimary (dsta-aa203.pivot.net [66.186.171.203]) by phoebe.host4u.net (8.11.6/8.11.6) with SMTP id i14EFGO11128 for ; Wed, 4 Feb 2004 08:15:16 -0600 Message-ID: <010d01c3eb29$9635f190$f7dea8c0@cyberware.local> To: Date: Wed, 4 Feb 2004 09:17:13 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010A_01C3EAFF.AD054670" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: assign to object by offset From: rrichards@ctindustries.net ("Rob Richards") ------=_NextPart_000_010A_01C3EAFF.AD054670 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is there any reason that zend_assign_to_object always converts the = property to a string when it's a variable? Looking at simpexml, there is no way to distinguish between writing to = an element or to an attribute when using variables. $sxe[0] =3D "a"; works fine, but $i=3D0; $sxe[$i] =3D "a"; doesnt as $i = is sent to the write_dimension function as a string while 0 is passed as = is. Due to this $sxe[0] will write the value to the element, while $sxe[$i] = will write it to the attribute. Reading however works fine as no conversion is done on the zval. Thanks, Rob ------=_NextPart_000_010A_01C3EAFF.AD054670--