On Fri, 19 Aug 2005, Andi Gutmans wrote:
> Dmitry commited the updated instanceof to HEAD. I suggest to merge it into
> PHP_5_1 as many want it and it's an extremely low risk patch.
> If people object, we can put it into 5.1.1.
I saw he made instanceof NOT use autoload anymore. I'm not sure if that
is such a good idea, as I'm wondering whether the following will work:
file a.php:
<?php
interface A {
}
?>
file b.php:
<?php
class B implements A {
}
?>
index.php:
<?php
function __autoload($name) {
require $name. '.php';
}
$f = new b();
if ($f instanceof A)
{
$f->doInterfaceFoo();
}
?>
regards,
Derick
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php