Re: [RFC] Throwable Interface
| From: | Yasuo Ohgaki | Date: | Sun, 24 May 2015 21:32:47 +0000 |
| Subject: | Re: [RFC] Throwable Interface | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86367@lists.php.net to get a copy of this message | ||
Hi Aaron,
On Sun, May 24, 2015 at 5:12 AM, Aaron Piotrowski <aaron@icicle.io> wrote:
> I’ve created an RFC for modifying the exception hierarchy for PHP 7,
> adding Throwable interface and renaming the exceptions thrown from fatal
> errors. The RFC is now ready for discussion.
>
> RFC: https://wiki.php.net/rfc/throwable-interface <
> https://wiki.php.net/rfc/throwable-interface>
> Pull Request: https://github.com/php/php-src/pull/1284 <
> https://github.com/php/php-src/pull/1284>
>
Does this include internal function type errors?
e.g.
$ php -r 'var_dump(mt_srand("99999999999999999999999999999999999"));'
PHP Warning: mt_srand() expects parameter 1 to be integer, string given in
Command line code on line 1
NULL
If not, please make these exceptions rather than E_WARNING.
We need consistency here.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net