W liście Stanislav Malyshev z dnia środa, 12 września 2007:
> >> function doSomething (Service s) {...}
> >>
> >> PHP tries to autoload type Service, but it can't know if it's looking
>
> Actually, in this case (and in any case where type of existing object is
> checked) autoloading is unnecessary (and it's a bug if it happens) since
> if the type Service is not loaded, there can be no objects of this type,
> thus we can decide the question of "is object s of type Service" without
> loading anything - the answer would be "no".

All right, seems it was fixed in the meantime - 
http://bugs.php.net/bug.php?id=39003

-- 
Paweł Stradomski

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to