Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77510 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61096 invoked from network); 23 Sep 2014 08:04:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 08:04:38 -0000 Authentication-Results: pb1.pair.com header.from=nicolai.scheer@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolai.scheer@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.41 as permitted sender) X-PHP-List-Original-Sender: nicolai.scheer@gmail.com X-Host-Fingerprint: 209.85.213.41 mail-yh0-f41.google.com Received: from [209.85.213.41] ([209.85.213.41:65070] helo=mail-yh0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/68-09206-59921245 for ; Tue, 23 Sep 2014 04:04:37 -0400 Received: by mail-yh0-f41.google.com with SMTP id b6so2558014yha.0 for ; Tue, 23 Sep 2014 01:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=agQsA+bg3GDsdH8LXT4rktqecJMqP1LeU9pRzj+Yffo=; b=MHrT9d4SnXfYJSB7FuBjIsk47cRHGwOSgf/ZqNP+LZw4shg9A7UvYqdAjGOG1Cg35c YeFo6YwCXz5ZWFKx7CoMjC5og3vX0pppapSZuA1BLXVy6uI77IeueN0A9FoA8abD+9pU vZCQADXWbe0NLxP/urXmnlNNGcexn90StKr1o212NXOLVco02yxC9Di3ePcftPq5izLP 0iA1XmjlNMq/hQQIS8e7hVMci+YqCu6ka7vf6A4DRBBnf7m/Atl02Qvl5eAsrZcd/tC4 ZQdfqSYSC4eCtK/yaJoupBGkviLRlmVtIWWsO7p3cbtQh5gvuaoBcH/3gRmWNKc3W1yo aEhA== MIME-Version: 1.0 X-Received: by 10.236.143.232 with SMTP id l68mr13201yhj.145.1411459474880; Tue, 23 Sep 2014 01:04:34 -0700 (PDT) Received: by 10.170.42.193 with HTTP; Tue, 23 Sep 2014 01:04:34 -0700 (PDT) Date: Tue, 23 Sep 2014 10:04:34 +0200 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=20cf303639239d84ca0503b704f8 Subject: Invokation on __toString() for object used as array key From: nicolai.scheer@gmail.com (Nicolai Scheer) --20cf303639239d84ca0503b704f8 Content-Type: text/plain; charset=UTF-8 Hi all, until 5 minutes ago I thought it would be perfectly legal to use an object as an array key, given that its __toString() method is in place. Seems as if I was wrong. I know that array keys are not what is considered "string context" internally, at least not directly. Would it harm in any way to add that feature? Greetings Nico --20cf303639239d84ca0503b704f8--