Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86382 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35094 invoked from network); 25 May 2015 17:52:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2015 17:52:48 -0000 Authentication-Results: pb1.pair.com header.from=dev@mabe.berlin; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dev@mabe.berlin; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mabe.berlin from 80.237.132.167 cause and error) X-PHP-List-Original-Sender: dev@mabe.berlin X-Host-Fingerprint: 80.237.132.167 wp160.webpack.hosteurope.de Received: from [80.237.132.167] ([80.237.132.167:46940] helo=wp160.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/C2-17853-F6163655 for ; Mon, 25 May 2015 13:52:47 -0400 Received: from dslb-088-073-137-171.088.073.pools.vodafone-ip.de ([88.73.137.171] helo=[192.168.178.27]); authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1YwwYO-0006CC-Ty; Mon, 25 May 2015 19:52:44 +0200 Message-ID: <5563616C.50802@mabe.berlin> Date: Mon, 25 May 2015 19:52:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: internals@lists.php.net References: <971AB39D-1E20-43E8-9CF1-A7F67E3C14C3@icicle.io> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;dev@mabe.berlin;1432576367;4b65c6ac; Subject: Re: [PHP-DEV] [RFC] Throwable Interface From: dev@mabe.berlin (Marc Bennewitz) On 05/24/2015 11:32 PM, Yasuo Ohgaki wrote: > Hi Aaron, > > On Sun, May 24, 2015 at 5:12 AM, Aaron Piotrowski 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 >