Re: [RFC] UString
| From: | Florian Margaine | Date: | Tue, 21 Oct 2014 09:23:30 +0000 |
| Subject: | Re: [RFC] UString | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78187@lists.php.net to get a copy of this message | ||
Hi,
@Philip: please read the discussion that happened a month ago (and follow
up on it if necessary):
http://marc.info/?l=php-internals&m=141145952422734&w=2
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 <dmitry@zend.com> 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
>
>
> --
> Sensational AG
> Giesshübelstrasse 62c, Postfach 1966, 8021 Zürich
> Tel. +41 43 544 09 60, Mobile +41 79 341 01 99
> info@sensational.ch, http://www.sensational.ch
>
--
Florian Margaine