Re: [RFC] Throwable Interface

From: Date: Mon, 25 May 2015 17:52:44 +0000
Subject: Re: [RFC] Throwable Interface
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-86382@lists.php.net to get a copy of this message
On 05/24/2015 11:32 PM, Yasuo Ohgaki wrote:
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. This would be great for strict_types mode as there it results in a fatal error.
http://3v4l.org/vHl8K
Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net


« previous php.internals (#86382) next »