Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78751 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10564 invoked from network); 5 Nov 2014 22:02:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2014 22:02:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.245 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.245 imap11-3.ox.privateemail.com Received: from [198.187.29.245] ([198.187.29.245:33868] helo=imap11-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/03-27106-F6E9A545 for ; Wed, 05 Nov 2014 17:02:24 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 0F0228800E5; Wed, 5 Nov 2014 17:02:21 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KMUzIyPtpBoB; Wed, 5 Nov 2014 17:02:20 -0500 (EST) Received: from [10.128.116.174] (dab-crx1-h-9-1.dab.02.net [82.132.224.141]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 297FB8800F8; Wed, 5 Nov 2014 17:02:20 -0500 (EST) References: <5B1B375C-328B-40BD-B715-8EDA158B44CE@ajf.me> <545A912A.2050202@sugarcrm.com> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: Cc: Stas Malyshev , Levi Morrison , internals , Nikita Popov X-Mailer: iPhone Mail (12B411) Date: Wed, 5 Nov 2014 22:02:10 +0000 To: Dmitry Stogov Subject: Re: [PHP-DEV] [RFC][Vote] Return Types From: ajf@ajf.me (Andrea Faulds) > On 5 Nov 2014, at 21:43, Dmitry Stogov wrote: >=20 > On Thu, Nov 6, 2014 at 12:05 AM, Stas Malyshev > wrote: >=20 >> Hi! >>=20 >>=20 >>> Do we always load the class in the hint? We could perhaps only do it >>> for inheritance checks? >>=20 >> No, classes are not loaded for type checks, since it would be pointless >> - if the class is not loaded, you could not have a value of that type, >> so if the class is not present, the answer is "no". >=20 > It's not true anymore, with this proposal. Thus my suggestion that we only load for the inheritance checks (and only if= the type differed). We don't need to normally. -- Andrea Faulds http://ajf.me/=