From 1bc25890e21830cebb8a50427a7af27eaef4f5cc Mon Sep 17 00:00:00 2001 From: azaozz Date: Fri, 20 Nov 2009 04:11:01 +0000 Subject: [PATCH] Show errors when minimum requirements are not met when installing, props dd32 Denis-de-Bernardy, fixes #9474 git-svn-id: http://svn.automattic.com/wordpress/trunk@12238 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/setup-config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 32939d0717..abab9904de 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -51,6 +51,12 @@ if (file_exists(ABSPATH . 'wp-config.php')) if (file_exists(ABSPATH . '../wp-config.php') && ! file_exists(ABSPATH . '../wp-settings.php')) wp_die("

The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try installing now.

"); +if ( version_compare( '4.3', phpversion(), '>' ) ) + wp_die( sprintf( /*WP_I18N_OLD_PHP*/'Your server is running PHP version %s but WordPress requires at least 4.3.'/*/WP_I18N_OLD_PHP*/, phpversion() ) ); + +if ( !extension_loaded('mysql') && !file_exists(ABSPATH . 'wp-content/db.php') ) + wp_die( /*WP_I18N_OLD_MYSQL*/'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.'/*/WP_I18N_OLD_MYSQL*/ ); + if (isset($_GET['step'])) $step = $_GET['step']; else