hi there,
a quick question regarding whether the following is by design,
because it causes a parse error (the code I tried out did occur within
a class definition ! :-):
if (!$field instanceof __CLASS__) {
// do something
}
where as this obviously does work:
$class = __CLASS__;
if (!$field instanceof $class) {
// do something
}
as does this:
if (!$field instanceof self) {
// do something
}
rgds,
jochem
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php