Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78187 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8860 invoked from network); 21 Oct 2014 09:23:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2014 09:23:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=florian@margaine.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=florian@margaine.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain margaine.com from 209.85.213.177 cause and error) X-PHP-List-Original-Sender: florian@margaine.com X-Host-Fingerprint: 209.85.213.177 mail-ig0-f177.google.com Received: from [209.85.213.177] ([209.85.213.177:36790] helo=mail-ig0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/61-02077-A2626445 for ; Tue, 21 Oct 2014 05:23:55 -0400 Received: by mail-ig0-f177.google.com with SMTP id a13so937071igq.10 for ; Tue, 21 Oct 2014 02:23:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=/89HaeAMqbspbn7inJ9dbeyqIo6ph0dIAS3fs8EJZZM=; b=bFt0FyTVBaH1Vh83iF9TemdeqjyYXSgFZYysv+bLenZIzZEZrWOMguJztWWO60So4V L0NKNRyGvrwrGi6d1XXiTBojGjWuZ12kGD5SYvdm3H4hiRvQy/q40t4PPsclVhSZ2hDD 3v285HFyqorA4a1IsLCBaolLfRtpJJTTdtEZ40FhWrg0p1nTtxpyvYDNyqa8gkyPbUwo Jgbxqndy4mYTecf9rJLyrOqSgw6WKi2kTQlNjaHYQjW95Yd56ziUYyufv46cC7DkVYVK LNHxNL3lxoN8ehhj/7aDARA6nY2045jrcmCb4qT1bAJFOEwr2rt9fNI7f7vuUEuZ/Xdb 28Wg== X-Gm-Message-State: ALoCoQmvlGyAXLVHNll0VLNwSlp9tS/1HfJoxITHCG3nDM3n0R0rN6sDJ3zVioeH5e7769oxjcKt X-Received: by 10.107.35.145 with SMTP id j139mr2244756ioj.55.1413883431856; Tue, 21 Oct 2014 02:23:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.25.200 with HTTP; Tue, 21 Oct 2014 02:23:30 -0700 (PDT) X-Originating-IP: [89.92.205.106] In-Reply-To: References: <1413875212.2624.3.camel@localhost.localdomain> Date: Tue, 21 Oct 2014 11:23:30 +0200 Message-ID: To: Philip Hofstetter Cc: Dmitry Stogov , Joe Watkins , PHP Internals Content-Type: multipart/alternative; boundary=001a114042b4b5c5910505eb636e Subject: Re: [PHP-DEV] [RFC] UString From: florian@margaine.com (Florian Margaine) --001a114042b4b5c5910505eb636e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, @Philip: please read the discussion that happened a month ago (and follow up on it if necessary): http://marc.info/?l=3Dphp-internals&m=3D141145952422734&w=3D2 Regards, On Tue, Oct 21, 2014 at 11:19 AM, Philip Hofstetter < phofstetter@sensational.ch> wrote: > Hello > > Tangentially related: > > On Tuesday, October 21, 2014, Dmitry Stogov wrote: > > > > > > It won't allow Unicode strings as array keys; > > > I wish there was a way for specific objects to opt into this. > > Using __toString() we have something that mostly behaves just like a > string and can be used wherever a string is required - with the exception > of array keys. > > I seem to remember some earlier discussion that led to this being > intentionally made impossible (and I understand why), but maybe there cou= ld > be support for another magic underscore method that's called when an obje= ct > is about to be put into an array as a key (or similar situations) > > Philip > > > -- > Sensational AG > Giessh=C3=BCbelstrasse 62c, Postfach 1966, 8021 Z=C3=BCrich > Tel. +41 43 544 09 60, Mobile +41 79 341 01 99 > info@sensational.ch, http://www.sensational.ch > --=20 Florian Margaine --001a114042b4b5c5910505eb636e--