formfields.com Forum Index formfields.com
FORMfields Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Call to undefined function: is_a()

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Bug Reports
View previous topic :: View next topic  
Author Message
formfields



Joined: 01 Aug 2005
Posts: 465

PostPosted: Thu Apr 20, 2006 7:31 pm    Post subject: Call to undefined function: is_a() Reply with quote

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
...
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group