Re: [RFC] Deprecate passing null to non-nullable arguments of internal functions
| From: | Craig Duncan | Date: | Wed, 16 Dec 2020 21:49:48 +0000 |
| Subject: | Re: [RFC] Deprecate passing null to non-nullable arguments of internal functions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112531@lists.php.net to get a copy of this message | ||
While making internal functions treat non-nullable types consistently with
userland is an absolute win,
I do wonder if it should be done simultaneously with changing some functions
to formally accept nulls.
I'm thinking back to all the pain caused when *count() *starting raising a
warning for null values.
We saw a lot of code that passed undeclared variables to *count()*
and I can imagine people writing similar code with something like *strlen()*