Call to undefined function: version_compare()

Please report bugs here!

Moderator: Thorsten

Post Reply
seanmc2
Posts: 1
Joined: Mon May 14, 2007 6:31 pm
Contact:

Call to undefined function: version_compare()

Post by seanmc2 »

After downloading and placing all the files in the specified directory (www.seansworld.com/faq/) and changing all the permissions from faq/ on down. I ran the installer script as instructed.

However I get the following error:
Call to undefined function: version_compare()

When I examine the installer.php script I find the following call to version_compare

if (version_compare(PHP_VERSION, '4.1.0') < 0) {
print "<p class=\"center\">You need PHP Version 4.1.0 or higher!</p>\n";
HTMLFooter();
die();
}


I've looked through the code and can't find it defined anywhere. Can I just comment it out? Do you have a patch?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

version_compare() is a PHP function since PHP 4.0.7. Which version of PHP are you running?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply