Hi,

is it intended to have different behaviours of is_a() and instanceof?

Let's assume you have the following code snippets:

class foo{}
class baz{} //<-you have a typo here, want to write bar

if($foo instanceof bar){
..
}
// runs without any notification

and

if(is_a($foo, bar)){
..
}
// runs with an undefined constant bar notification

I think the instanceof solution can cause problems, because you can not trigger the problem. What do you think?

Johannes

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

Reply via email to