[solved] mediawiki 1.12.0 required php4?

Boy aren’t I just a popular topic today :frowning:

Hi, when trying to install MediaWiki version 1.12.0, I get this error:

[code:1]This script cannot be installed, as it requires PHP version 4.[/code:1]

Naturally, PHP4 isn’t installed. We’re running everything on PHP5 on this server.

However, I installed multiple instances of Mediawiki a week ago without any errors. There was an update to the MediaWiki installer since then, so that could be the culprit.

This isn’t a domain specific problem. It happens for all my virtualhosts.<br><br>Post edited by: kato, at: 2008/08/06 05:01

BTW-Just for giggles, I’ll point out the bug:

return $ver >= 1.7 ? ( 5 ) : ( 4 );

The test evaluates to false, because 1.12 is “smaller” than 1.7, because it looks like we’re doing a decimal number comparison, rather than a “version”.“point release” comparison. Tricky one.

Definately a bug, which will be fixed in the next release.

I just wish all software used strict numerical version numbers like Webmin does :slight_smile:

Awesome, and thanks.

Ironically, I wrote a bug just like that a couple years back :slight_smile:

That seems buglike. Yep, I see the problem…File a ticket, and Jamie will correct it.

In the meantime, you can fake it by editing mediawiki.pl and changing the script_mediawiki_php_vers to this:

sub script_mediawiki_php_vers
{
local ($d, $ver) = @_;
return 5;
}

That seems buglike. Yep, I see the problem…File a ticket, and Jamie will correct it.

In the meantime, you can fake it by editing mediawiki.pl and changing the script_mediawiki_php_vers to this:

sub script_mediawiki_php_vers
{
local ($d, $ver) = @_;
return 5;
}