Last modified: 2013-03-18 10:03:24 UTC
As of r83879 we require at least 5.2.3. I've started fixing up code paths where it checks and conditionally does stuff for some old versions of PHP. Most of these can be removed/updated
Mmmm. Have I done most of these now...
phpversion() http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=138&hash=feb029387bfe3c1b78ad066fabfd40d4 PHP_VERSION http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=139&hash=0810f00c007b3901bc1bc573777104a7
Cheers :) AFAIK all the usages of phpversion() can stay, just need to check the PHP_VERSION stuff now
Was this task completed? 1.18 is not supported anymore. (In reply to comment #0) > As of r83879 we require at least 5.2.3. According to http://www.mediawiki.org/wiki/Manual:Installation_requirements now it's 5.3.2 or later.
Full list looks like completed so closing. Only one I'm wondering about is ./includes/installer/Installer.php: $this->showError( 'config-using531', phpversion() ); but that's because the exact PHP version is not known. $:andre\> grep -r PHP_VERSION . Binary file ./.git/objects/pack/pack-805102c3dd67f75022fbf76a17f81b1d33a68868.pack matches ./includes/json/FormatJson.php: if ( !function_exists( 'json_encode' ) || ( $pretty && version_compare( PHP_VERSION, '5.4.0', '<' ) ) ) { ./includes/debug/Debug.php: 'phpVersion' => PHP_VERSION, ./includes/installer/Installer.php: const MINIMUM_PHP_VERSION = '5.3.2'; ./includes/installer/Installer.php: if( version_compare( $phpVersion, self::MINIMUM_PHP_VERSION, '>=' ) ) { ./includes/installer/Installer.php: $this->showMessage( 'config-env-php-toolow', $phpVersion, self::MINIMUM_PHP_VERSION ); ./includes/CryptRand.php: && ( !wfIsWindows() || version_compare( PHP_VERSION, '5.3.4', '>=' ) ) ./includes/GlobalFunctions.php: if ( $limit && version_compare( PHP_VERSION, '5.4.0', '>=' ) ) { ./includes/GlobalFunctions.php: $php_ver = PHP_VERSION; ./includes/GlobalFunctions.php: ( wfIsWindows() && version_compare( PHP_VERSION, '5.3.3', '>=' ) ) ./maintenance/dev/includes/php.sh: if "$binary" -r 'exit((int)!version_compare(PHP_VERSION, "5.4", ">="));'; then ./maintenance/Maintenance.php:if ( !function_exists( 'version_compare' ) || version_compare( PHP_VERSION, '5.3.2' ) < 0 ) { ./maintenance/checkSyntax.php: $useParseKit = function_exists( 'parsekit_compile_file' ) && version_compare( PHP_VERSION, '5.3', '<' ); $:andre\> grep -r phpversion . ./index.php:if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) { ./api.php:if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) { ./resources/mediawiki/mediawiki.debug.js: bitDiv( 'phpversion' ) ./includes/specials/SpecialVersion.php: $software['[http://www.php.net/ PHP]'] = phpversion() . " (" . PHP_SAPI . ")"; ./includes/PHPVersionError.php: $phpVersion = phpversion(); ./includes/api/ApiQuerySiteinfo.php: $data['phpversion'] = phpversion(); ./includes/installer/Installer.php: $phpVersion = phpversion(); ./includes/installer/Installer.php: $this->showError( 'config-using531', phpversion() ); ./maintenance/install.php:if ( !function_exists( 'version_compare' ) || ( version_compare( phpversion(), '5.3.2' ) < 0 ) ) { ./maintenance/update.php:if ( !function_exists( 'version_compare' ) || ( version_compare( phpversion(), '5.3.2' ) < 0 ) ) { ./maintenance/update.php: $ver = phpversion(); ./load.php:if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) { ./tests/testHelpers.inc: 'tr_php_version' => phpversion(), $:andre\>