On 05/24/2015 11:32 PM, Yasuo Ohgaki wrote:
Hi Aaron,
On Sun, May 24, 2015 at 5:12 AM, Aaron Piotrowski <aa...@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.
This would be great for strict_types mode as there it results in a fatal
error.
http://3v4l.org/vHl8K
Regards,
--
Yasuo Ohgaki
yohg...@ohgaki.net
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php