Re: Recap - Core functions throwing exceptions in PHP7
| From: | Andrey Andreev | Date: | Fri, 21 Aug 2015 21:26:49 +0000 |
| Subject: | Re: Recap - Core functions throwing exceptions in PHP7 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87845@lists.php.net to get a copy of this message | ||
Hi,
On Fri, Aug 21, 2015 at 4:36 PM, Anthony Ferrara <ircmaxell@gmail.com> wrote:
>
> MHO is this is too important of a distinction to simply gloss over.
> Having it return false (or null) will be a problem, as nobody will
> perform the error checks. And returning $x where
$x == 0 in a
> security context could be incredibly bad. As such, I think the
> security implications here outweigh nearly all of the other concerns
> about consistency and convention.
^ That! Please don't sweep this under the carpet.
Yes, the RFC and release processes are vital, and consistency is
desirable, but neither should be an excuse for what could be a
horrible mistake here.
Cheers,
Andrey.