Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84680 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17859 invoked from network); 13 Mar 2015 13:30:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 13:30:44 -0000 Authentication-Results: pb1.pair.com header.from=kluev.andrew@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kluev.andrew@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.177 as permitted sender) X-PHP-List-Original-Sender: kluev.andrew@gmail.com X-Host-Fingerprint: 209.85.217.177 mail-lb0-f177.google.com Received: from [209.85.217.177] ([209.85.217.177:40076] helo=mail-lb0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/23-32208-386E2055 for ; Fri, 13 Mar 2015 08:30:44 -0500 Received: by lbiw7 with SMTP id w7so22799245lbi.7 for ; Fri, 13 Mar 2015 06:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=BUfoA9D6Vod64iFRuxdFEn7D4SVDnmOlNdUXMO8HtF0=; b=ooBF2pSDH+Dj6cCWu2LcxmdkpnDJW1zbGTbbPfv+UbrfJd0uQKBkv+q1VWi+zJl2U3 FGItc3ys5XiWl5N1huXASTl5kxyT9KK9UAvet/uAjaZBuihwD3xDj4lo4ao9gJR1rQ72 0f4G1+TBoLTu+00NibdrHAPyK71rf1D5fgmrcLuHueY+AijugSs51aFgI5mUjbNnptEB RiWIGQmJBmr/8MLlV6XBG2SH8LP8ouTLE0HE6Q/vAjunxP4n6jAmUeA5+c+JlcDwOGTi KGUNnzhZxlh3FqcmCDEKNp7sv59QLGuFDRHgh5f5jHR5Ejf2JaWwwY3pcpkIzKtZDb3i G2bQ== MIME-Version: 1.0 X-Received: by 10.112.171.65 with SMTP id as1mr43531402lbc.45.1426253440962; Fri, 13 Mar 2015 06:30:40 -0700 (PDT) Received: by 10.114.70.39 with HTTP; Fri, 13 Mar 2015 06:30:40 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Mar 2015 16:30:40 +0300 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11c25ac6b5579705112b818d Subject: Re: [PHP-DEV] Behavior of classes type hinting together with the error handler From: kluev.andrew@gmail.com (Andrew Kluev) --001a11c25ac6b5579705112b818d Content-Type: text/plain; charset=UTF-8 Sorry for hype. If found this text in Engine Exceptions RFC just now `The E_RECOVERABLE_ERROR part of the proposal may introduce a minor BC break, because it will no longer allow to silently ignore recoverable errors with a custom error handler. As this point is somewhat controversial I'll have a separate voting option for this.` It's realy cool! Thanks you! Best regards. Andrew Kluev. 2015-03-13 15:40 GMT+03:00 Andrew Kluev : > Oh! Thanks Nikita. I did not know that the exceptions in the engine > already accepted. But in fairness, in PHP "A $a" typehint does not make > sure that "$a instanceof A " returns true. You can change "test" fucntion > in code form my first message to > > function test(A $a) > { > var_dump($a instanceof A); > } > > Output will be "bool(false)". > > Today I will try to recompile my PHP7, but with the exception of the > engine and try to reproduce this behavior. I have a view that it will be > possible to make. > > > > --001a11c25ac6b5579705112b818d--