Re: preg_replace(string, null) is allowed?
| From: | Guilliam Xavier | Date: | Thu, 18 Feb 2021 09:12:31 +0000 |
| Subject: | Re: preg_replace(string, null) is allowed? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-113205@lists.php.net to get a copy of this message | ||
On Thu, Feb 18, 2021 at 3:15 AM David Rodrigues <david.proweb@gmail.com>
wrote:
> Thanks!
>
> There is a reason why it is not supported anymore?
>
https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg
"PHP RFC:
Deprecate passing null to non-nullable arguments of internal functions".
In short: to fix an historical inconsistency between internal and
user-defined (esp. polyfilled) functions.
First discussed at https://externals.io/message/105845 "Handling of
null
arguments to internal functions".
Rebooted as https://externals.io/message/112327
(and
https://externals.io/message/112996 ) for the RFC.
--
Guilliam Xavier