Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78186 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7294 invoked from network); 21 Oct 2014 09:20:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2014 09:20:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=phofstetter@sensational.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=phofstetter@sensational.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sensational.ch designates 195.226.6.199 as permitted sender) X-PHP-List-Original-Sender: phofstetter@sensational.ch X-Host-Fingerprint: 195.226.6.199 mail.sensational.ch Received: from [195.226.6.199] ([195.226.6.199:42812] helo=mail.sensational.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/11-02077-04526445 for ; Tue, 21 Oct 2014 05:20:00 -0400 Received: from mail-ob0-f176.google.com ([209.85.214.176]:46872) by mail.sensational.ch with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.76 and XAMS 0.0.20) id 1XgVbg-00070p-Ss for internals@lists.php.net; Tue, 21 Oct 2014 11:19:57 +0200 Received: by mail-ob0-f176.google.com with SMTP id m8so642625obr.7 for ; Tue, 21 Oct 2014 02:19:55 -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:date :message-id:subject:from:to:cc:content-type; bh=W7oAhVKwZ7lggTd/GrUnYIJ4WJQ1EKRCLFQgNIpvxKY=; b=K0ZYDQ3LF93m5Txd6dluikZ1ceD5IzV/DY1kC/D91xGwAh97orrJ/Ypzlxoe7kpzsL LZZdLBKiKLRydCggB/vKK/314Uj780hnACYDjomwvE6MEjWcgv6i1YQCZB0E2K+0BNSK S5kIHwPEWddlt8XWfJirYd/9WDWLTjXRr8fy/1vBI3XTxHWFmDGcF4CuoLOdE956Wscc sX0P+UUozpBM4OCnRRGF2FsRqzPyvJCuCCRWrWQBONwgXJHRqObsksCkuALGwv/vkG9r OZfWh2RXJbi9Z4X9Fi4VlaEm5IU+y7aU71ZOe+p0CpbxZUmtXRwHp+NdAVBwRD1HOHaX zv5A== X-Gm-Message-State: ALoCoQksyPja2PmbgupzuoMT3Bn9y9Z2rp3CgMFVQ6ZnTTFa9y5GC1xB/D2fw8B0uUPjYVYXRa/IGgkQy0czZoFJoL47VVUOivxIAFlJfRE6X9iyVGDQY1++fDy5zrdl+/aXate9ehb16HuFYivnqvvKzK2hCXr7Gw== X-Received: by 10.182.163.20 with SMTP id ye20mr24061606obb.16.1413883195040; Tue, 21 Oct 2014 02:19:55 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.163.20 with SMTP id ye20mr24061597obb.16.1413883194848; Tue, 21 Oct 2014 02:19:54 -0700 (PDT) Received: by 10.76.156.67 with HTTP; Tue, 21 Oct 2014 02:19:54 -0700 (PDT) In-Reply-To: References: <1413875212.2624.3.camel@localhost.localdomain> Date: Tue, 21 Oct 2014 11:19:54 +0200 Message-ID: To: Dmitry Stogov Cc: Joe Watkins , PHP Internals Content-Type: multipart/alternative; boundary=e89a8f83ad7d954d940505eb5573 X-SA-Do-Not-Run: Yes X-SA-Exim-Connect-IP: 209.85.214.176 X-SA-Exim-Mail-From: phofstetter@sensational.ch X-SA-Exim-Scanned: No (on mail.sensational.ch); SAEximRunCond expanded to false Subject: Re: [PHP-DEV] [RFC] UString From: phofstetter@sensational.ch (Philip Hofstetter) --e89a8f83ad7d954d940505eb5573 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 could be support for another magic underscore method that's called when an object is about to be put into an array as a key (or similar situations) Philip --=20 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 --e89a8f83ad7d954d940505eb5573--