> On 5 Nov 2014, at 21:43, Dmitry Stogov <dmi...@zend.com> wrote: > > On Thu, Nov 6, 2014 at 12:05 AM, Stas Malyshev <smalys...@sugarcrm.com> > wrote: > >> Hi! >> >> >>> Do we always load the class in the hint? We could perhaps only do it >>> for inheritance checks? >> >> 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". > > 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/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php