Re: [RFC] Deprecations for PHP 7.1
| From: | Stanislav Malyshev | Date: | Thu, 18 Feb 2016 21:41:30 +0000 |
| Subject: | Re: [RFC] Deprecations for PHP 7.1 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91291@lists.php.net to get a copy of this message | ||
Hi!
> I've created a bulk-deprecation RFC for PHP 7.1:
> https://wiki.php.net/rfc/deprecations_php_7_1
>
I like dropping php_errormsg. Last time I tried to make error
suppression work more efficiently this was a major problematic thing
AFAIR, and in general using magic variables that pop out of nowhere is
not a good thing.
For __autoload I guess since it's incompatible with superior SPL
mechanism it has to go too.
I'm not sure about create_function() - while it is old, I don't see why
we should break working code using it just because better option is
available.
With rand functions, I don't think we need to touch them. For some
applications, low-key randomness is just fine - if you need to shuffle
array of 20 elements or randomize unit test to ensure you're not testing
same value all the time, low-quality randomness is completely fine. For
other applications, there are superior solutions and everybody who needs
them already uses them, but again I see no value in removing those
functions. It would only cause more breakage and make adoption of new
versions (already horrible) even slower.
--
Stas Malyshev
smalyshev@gmail.com