Re: Long-Term Planning for PHP 9.0 Error Promotion
| From: | Christian Schneider | Date: | Wed, 26 Jan 2022 17:25:13 +0000 |
| Subject: | Re: Long-Term Planning for PHP 9.0 Error Promotion | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116933@lists.php.net to get a copy of this message | ||
Am 26.01.2022 um 17:42 schrieb Craig Francis <craig@craigfrancis.co.uk>:
> While I did begin an RFC to allow *some* functions to be more tolerant of
> NULL, especially for those scripts not using
strict_types:
>
> https://wiki.php.net/rfc/allow_null
>
> Or in other words, to "relax certain type requirements on a case by case
> basis", ref the original discussion:
>
> https://externals.io/message/112327
>
> The only feedback I've received is that it's a "terrible idea" (no
> details), "it's a bit late" (deprecations have already been issued, full
> steam ahead?), and the typical objections/negativity (-4 points on
> externals.io, not quite a record, but getting there).
For the record: I'm in favor of pursuing this RFC, I think disallowing null for functions like
strlen does more harm than good.
Regards,
- Chris