Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89914 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10026 invoked from network); 28 Dec 2015 20:41:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Dec 2015 20:41:03 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.182 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.182 mail-yk0-f182.google.com Received: from [209.85.160.182] ([209.85.160.182:34686] helo=mail-yk0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/C6-51216-E5E91865 for ; Mon, 28 Dec 2015 15:41:02 -0500 Received: by mail-yk0-f182.google.com with SMTP id a85so36152760ykb.1 for ; Mon, 28 Dec 2015 12:41:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Zoqnn7dWnP2llX+mkm4mAcA/mOiZ+KMX9MeenjQFMyc=; b=JEBEVejMAFjtJyECofuj4RFrqOq5Iz9DYwOP13plJFY192e/QXWayM5LoAt05CJ9FP 8bo0ZgMhBoLJwQTpfnQwtzIMZEi6N2eZYMTbYD/mBZFlf4BqaeaPKnBfwikq29hTK/GB YxcJCdUvjbx1h/Z8TFKt26cWNkuLsi+mzmYfbIp+SVY4pCc0i+fxlq8hLV5AU/wsbEy3 e3/o3vI3WofjFdpIObPBTQWvp8Y5FplUYCEvAq+t0HUUCFirI1YecaPqKTD4KpKZ1Nl1 16GMf+fR2qBLqPTRmJlxnvl8wStFGz04v6PB1vDF3yw3xCl5zAKh/lG5Wd/N/N8TdeJn zU1w== X-Received: by 10.129.60.12 with SMTP id j12mr46843017ywa.86.1451335258629; Mon, 28 Dec 2015 12:40:58 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.129.88.139 with HTTP; Mon, 28 Dec 2015 12:40:19 -0800 (PST) In-Reply-To: References: <56811E49.1040106@php.net> Date: Tue, 29 Dec 2015 05:40:19 +0900 X-Google-Sender-Auth: O1k8nhEHfeXM-kkc8VuYsYL_hmM Message-ID: To: Elijah Johnson Cc: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Make strict mode more strict? From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi all, On Tue, Dec 29, 2015 at 5:28 AM, Yasuo Ohgaki wrote: > Object(class) is type, so it makes sense checking class consistency. If we > check object's class, not only the class but also ancestor classes should be > checked. This may affect performance. > I'm not sure if this worth the effort. It sounds negative, so I correct this. Since we have class type hint, it better to support class check. IMO. Almost all cases are simple class equality check. So it wouldn't hurt performance much, I suppose. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net