Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26539 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38468 invoked by uid 1010); 13 Nov 2006 14:05:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38452 invoked from network); 13 Nov 2006 14:05:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Nov 2006 14:05:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=news@sea.gmane.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:46285] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/73-14365-49B78554 for ; Mon, 13 Nov 2006 09:05:11 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GjbW5-0003Fx-9b for internals@lists.php.net; Mon, 13 Nov 2006 14:06:25 +0100 Received: from popeye.ez.no ([85.19.74.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Nov 2006 14:06:25 +0100 Received: from sb by popeye.ez.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Nov 2006 14:06:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Mon, 13 Nov 2006 14:06:01 +0100 Lines: 14 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: popeye.ez.no User-Agent: Thunderbird 2.0a1 (X11/20061109) X-Enigmail-Version: 0.94.1.0 Sender: news Subject: SimpleXML: A bug or just an annoyance? From: sb@sebastian-bergmann.de (Sebastian Bergmann) 1 '); 3 4 $array = array(); 5 $array[$root['id']] = 'value'; 6 7 $key = (int)$root['id']; 8 $array[$key] = 'value'; 9 ?> Warning: Illegal offset type in /home/sb/test.php on line 5 -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69