note 66276 deleted from migration5.incompatible by bjori
| From: | bjori@php.net | Date: | Thu, 18 May 2006 09:46:14 +0000 |
| Subject: | note 66276 deleted from migration5.incompatible by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-111570@lists.php.net to get a copy of this message | ||
Note Submitter:
Reason: bad code
----
PHP4 is_a compat:
if (!function_exists('is_a')) {
function is_a($object, $class) {
return $object instanceOf $class;
}
}
That way you can keep is_a calls with forwards-compatibility.