WordPress.org

Make WordPress Core

Changeset 5546


Ignore:
Timestamp:
05/25/2007 02:51:33 PM (11 years ago)
Author:
rob1n
Message:

Actually check for PHP 4.2. Props nbachiyski. fixes #4336

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r5510 r5546  
    4949    $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);
    5050
    51 if ( !(phpversion() >= '4.1') )
    52     die( 'Your server is running PHP version ' . phpversion() . ' but WordPress requires at least 4.1' );
     51if ( version_compare( '4.2', phpversion(), '>' ) ) {
     52    die( 'Your server is running PHP version ' . phpversion() . ' but WordPress requires at least 4.2.' );
     53}
    5354
    5455if ( !extension_loaded('mysql') && !file_exists(ABSPATH . 'wp-content/db.php') )
Note: See TracChangeset for help on using the changeset viewer.