note 66276 added to migration5.incompatible
| From: | php-general at lists dot php dot net | Date: | Thu, 18 May 2006 09:39:43 +0000 |
| Subject: | note 66276 added to migration5.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111569@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 203.220.0.234
Probable Submitter: 130.95.128.51 (proxied: 130.95.36.202)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/migration5.incompatible.php
Edit -- http://master.php.net/note/edit/66276
Del: integrated -- http://master.php.net/note/delete/66276/integrated
Del: useless -- http://master.php.net/note/delete/66276/useless
Del: bad code -- http://master.php.net/note/delete/66276/bad+code
Del: spam -- http://master.php.net/note/delete/66276/spam
Del: non-english -- http://master.php.net/note/delete/66276/non-english
Del: in docs -- http://master.php.net/note/delete/66276/in+docs
Del: other reasons-- http://master.php.net/note/delete/66276
Reject -- http://master.php.net/note/reject/66276
Search -- http://master.php.net/manage/user-notes.php