formfields
Joined: 01 Aug 2005 Posts: 465
|
Posted: Thu Apr 20, 2006 7:31 pm Post subject: Call to undefined function: is_a() |
|
|
It appears that some earlier versions of PHP 4.X don't have implementations for is_a() and file_get_contents(). To prevent this from causing errors, edit your /FORMfields/FORMfields.php file and add an implementation for these functions after the last line of define statements:
| Code: |
...
define ("FF_FIELD_ERROR_WRAP", 15);
define ("FF_VERSION", "2.1.20060418");
// 2006.04.20 - FUNCTIONS NOT IN PHP 4.0 - BEGIN
if (!function_exists("is_a")) {
function is_a($anObject, $aClass) {
return get_class($anObject) == strtolower($aClass)
or is_subclass_of($anObject, $aClass);
}
}
if (!function_exists("file_get_contents")) {
function file_get_contents($filename) {
return implode('', file($filename));
}
}
// 2006.04.20 - FUNCTIONS NOT IN PHP 4.0 - END
...
|
|
|