Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84679 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7415 invoked from network); 13 Mar 2015 12:41:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 12:41:03 -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.170 as permitted sender) X-PHP-List-Original-Sender: kluev.andrew@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:42914] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/71-32208-EDAD2055 for ; Fri, 13 Mar 2015 07:41:03 -0500 Received: by lbjb6 with SMTP id b6so22364083lbj.9 for ; Fri, 13 Mar 2015 05:41:00 -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=QTJEIHmx4QTTm31CBSNBIlMEg6uu40efhYUHZdY5ECE=; b=TxgYJFpxXI7HxApfGShGH+m1AUIkw9+tDq8cCS11BccSlETyKCv0au+XFtHoxLg6YU 5biDch5xB9oec0frhCaeIxcdmRwTPHEcZ5/XQxp7gs2it5CGMXQwq/HHBC5uYgzN6cYv S3lXLw/MEZ4yBdILgMvyUwmQFa6et1O/9ZS2SO51jMvkxumLmfyGFBd4rN129GM9GhuW aO2hInevkjuzCPQx6yp62aM8HcF8kVpKHg3S3ZQn9hB7MAXTT+N/mipA5phSc+QYlkVw jpbfzgqFrYRKt3MnkUbiuURb0+4eVg994Sx7SMEtbTL8tlrMkB/FvvEQCRC4N+XQIVlo jjWA== MIME-Version: 1.0 X-Received: by 10.152.10.209 with SMTP id k17mr13580432lab.50.1426250460042; Fri, 13 Mar 2015 05:41:00 -0700 (PDT) Received: by 10.114.70.39 with HTTP; Fri, 13 Mar 2015 05:40:59 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Mar 2015 15:40:59 +0300 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11332538081c9205112ad0d7 Subject: Fwd: [PHP-DEV] Behavior of classes type hinting together with the error handler From: kluev.andrew@gmail.com (Andrew Kluev) --001a11332538081c9205112ad0d7 Content-Type: text/plain; charset=UTF-8 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. --001a11332538081c9205112ad0d7--