From: Siebrand Mazeland Date: Sat, 2 Oct 2010 22:22:12 +0000 (+0000) Subject: Remove some references to no longer supported PHP version. X-Git-Tag: 1.31.0-rc.0~34664 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=d088f079e3bff9d51fd86ecf6067165743707376;p=lhc%2Fweb%2Fwiklou.git Remove some references to no longer supported PHP version. Also add a FIXME for a check in DefaultSettings.php and fix indentation in install-utils.inc. --- diff --git a/includes/Article.php b/includes/Article.php index 0fe0dc98de..211a0da11e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -4492,7 +4492,6 @@ class Article { } # Get the diff - # Note that we simulate array_diff_key in PHP <5.0.x $templates_diff = array_diff_key( $poTemplates, $tlTemplates ); if ( count( $templates_diff ) > 0 ) { diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 07f8025d4d..7b143e4271 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3778,6 +3778,8 @@ $wgAdvancedSearchHighlighting = false; /** * Regexp to match word boundaries, defaults for non-CJK languages * should be empty for CJK since the words are not separate + * + * @todo FIXME: checks for lower than required PHP version (5.1.x). */ $wgSearchHighlightBoundaries = version_compare("5.1", PHP_VERSION, "<")? '[\p{Z}\p{P}\p{C}]' : '[ ,.;:!?~!@#$%\^&*\(\)+=\-\\|\[\]"\'<>\n\r\/{}]'; // PHP 5.0 workaround diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 0e00c69365..fc793b92b4 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -16,7 +16,7 @@ require_once dirname( __FILE__ ) . '/normal/UtfNormalUtil.php'; /** * Compatibility functions * - * We more or less support PHP 5.0.x and up. + * We support PHP 5.1.x and up. * Re-implementations of newer functions or functions in non-standard * PHP extensions may be included here. */ diff --git a/includes/WebStart.php b/includes/WebStart.php index 13dc08c63b..557fa741f5 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -89,16 +89,6 @@ if ( !function_exists( 'version_compare' ) exit; } -# Test for PHP bug which breaks PHP 5.0.x on 64-bit... -# As of 1.8 this breaks lots of common operations instead -# of just some rare ones like export. -$borked = str_replace( 'a', 'b', array( -1 => -1 ) ); -if( !isset( $borked[-1] ) ) { - echo "PHP 5.0.x is buggy on your 64-bit system; you must upgrade to PHP 5.1.x\n" . - "or higher. ABORTING. (http://bugs.php.net/bug.php?id=34879 for details)\n"; - exit; -} - # Start the autoloader, so that extensions can derive classes from core files require_once( "$IP/includes/AutoLoader.php" ); diff --git a/includes/templates/PHP4.php b/includes/templates/PHP4.php index ea562aa4d0..511ce7186e 100644 --- a/includes/templates/PHP4.php +++ b/includes/templates/PHP4.php @@ -58,7 +58,7 @@ if ( preg_match( '!^(.*)/config/[^/]*.php$!', $scriptUrl, $m ) ) {

MediaWiki

- MediaWiki requires PHP 5.0.0 or higher. You are running PHP + MediaWiki requires PHP 5.1.x or higher. You are running PHP .

index.php5 \n" . - "to continue installation. ABORTING.\n"; + "PHP files have a .php5 extension, please navigate to index.php5 \n" . + "to continue installation. ABORTING.\n"; die( 1 ); } diff --git a/php5.php5 b/php5.php5 index 44f511338b..51e077f054 100644 --- a/php5.php5 +++ b/php5.php5 @@ -4,6 +4,6 @@ * Test for *.php5 capability in webserver * Used by includes/templates/PHP4.php */ -if ( version_compare( phpversion(), '5.0.0' ) >= 0 ) { +if ( version_compare( phpversion(), '5.1.0' ) >= 0 ) { echo 'y'.'e'.'s'; }