From: Brion Vibber Date: Wed, 10 May 2006 19:58:17 +0000 (+0000) Subject: We require PHP 5 now, make sure the installer requires this. X-Git-Tag: 1.31.0-rc.0~57184 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites_tous%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=a41764dc3f8048017c15de5a3b6e206017db3b05;p=lhc%2Fweb%2Fwiklou.git We require PHP 5 now, make sure the installer requires this. Uncertain of the exact minimum version requirement; checking for 5.0.0+ --- diff --git a/INSTALL b/INSTALL index cd8400bd04..7240e4170c 100644 --- a/INSTALL +++ b/INSTALL @@ -7,7 +7,7 @@ and configure the wiki "in-place", as long as you have the necessary prerequesites available. Required software: -* Web server with PHP 4.3.2 or higher; 4.4.x or 5.x is recommended. +* Web server with PHP 5.x or higher. * A MySQL server, 4.0.14 or higher. MediaWiki is developed and tested mainly on Unix/Linux diff --git a/install-utils.inc b/install-utils.inc index 9a8bab1272..235baaa0e2 100644 --- a/install-utils.inc +++ b/install-utils.inc @@ -7,11 +7,11 @@ function install_version_checks() { if( !function_exists( 'version_compare' ) ) { # version_compare was introduced in 4.1.0 - echo "Your PHP version is much too old; 4.0.x will _not_ work. 4.3.2 or higher is required. ABORTING.\n"; + echo "Your PHP version is much too old; 4.0.x will _not_ work. 5.0.0 or higher is required. ABORTING.\n"; die( -1 ); } - if( version_compare( phpversion(), '4.3.2' ) < 0 ) { - echo "PHP 4.3.2 or higher is required. ABORTING.\n"; + if( version_compare( phpversion(), '5.0.0' ) < 0 ) { + echo "PHP 5.0.0 or higher is required. ABORTING.\n"; die( -1 ); }