Re: Exposing object handles to userland
| From: | Stanislav Malyshev | Date: | Sun, 02 Aug 2015 07:12:23 +0000 |
| Subject: | Re: Exposing object handles to userland | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87493@lists.php.net to get a copy of this message | ||
Hi!
> It would be awesome if this patch could be applied for php 7.0!
Please don't. This changes the whole meaning of spl_object_hash, and
serves no useful purpose. If you need the id so much, it should be a
separate function. I am still against exposing raw IDs, but if the
consensus is we need them then it should be done cleanly not by just
taking existing function and repurposing half of its output. That's not
the right design by any measure.
And rushing with it into 7.0 does not give any time to properly discuss it.
--
Stas Malyshev
smalyshev@gmail.com