Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53109 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31821 invoked from network); 6 Jun 2011 23:20:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jun 2011 23:20:26 -0000 Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pw0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:36684] helo=mail-pw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/92-20040-AB06DED4 for ; Mon, 06 Jun 2011 19:20:26 -0400 Received: by pwj3 with SMTP id 3so2535842pwj.29 for ; Mon, 06 Jun 2011 16:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=6oZ4VGtyXeygnFPQTHUwAmM0938R14zmArvHUSj6j3Q=; b=I92JfYJ8HhsQWvC8cBVoRfj0hsS6mTHEz2JAIfG0u545YYFhS1SEViyJgJDV3FLPDH UQ4zvWAZj7CCEQDSzAAptUbTqwD+GIKy9TIBgLebuGTg5C1RNngdXd8FtG7GSP3CjjuO kBS+O2C1hV2ZcRVAQze/KoKBrovr+VeRJmN58= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Vw7s8K32A87yJ5URKRa2uxROso0ZXq4A4UtiX8a8TLFNa48xSx6nMLNprphnrmnqu7 4eQQo76wov5sI5NF04G9+Vf2vq8qDCAxaFAEzvoajvUKyoDd6oZn0qu6zEyFYTbrILWk r6Y1xGuHfinPN4DFqjwFBgu/xgQJWhqdBZWk4= MIME-Version: 1.0 Received: by 10.68.36.234 with SMTP id t10mr2246483pbj.361.1307402423375; Mon, 06 Jun 2011 16:20:23 -0700 (PDT) Received: by 10.68.63.162 with HTTP; Mon, 6 Jun 2011 16:20:23 -0700 (PDT) In-Reply-To: <4DED5C77.8040209@sugarcrm.com> References: <4DED3A29.1090209@sugarcrm.com> <4DED43D4.4070006@sugarcrm.com> <4DED5C77.8040209@sugarcrm.com> Date: Mon, 6 Jun 2011 16:20:23 -0700 Message-ID: To: Stas Malyshev Cc: "Matthew Weier O'Phinney" , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Callable typehint From: chrisstocktonaz@gmail.com (Chris Stockton) Hi Stas, On Mon, Jun 6, 2011 at 4:02 PM, Stas Malyshev wrote: > > I wouldn't love it a bit, frankly, as "rely on PHP's native error handling" > in this context means "bombing out in runtime without any idea what went > wrong". When you have exception, you could make it print what happened and > recover, if you want. When you have fatal error, you can't do much at all. The patch as you probably know throws a E_RECOVERABLE_ERROR, which in my humble opinion doesn't quite fall under the end-of-world category you seem to explain there :- ) I.E. function bar($a, $b, $c, $d) { return true; } set_error_handler("bar"); class Foo { public function test(Array $arr) {} } $foo = new Foo; $foo->test('invalid'); echo "Everything will be okay.. :p"; -Chris