### Eclipse Workspace Patch 1.0
#P wordpress-trunk
Index: wp-admin/includes/update-core.php
===================================================================
--- wp-admin/includes/update-core.php	(revision 12419)
+++ wp-admin/includes/update-core.php	(working copy)
@@ -215,10 +215,15 @@
  * @return WP_Error|null WP_Error on failure, null on success.
  */
 function update_core($from, $to) {
-	global $wp_filesystem, $_old_files;
+	global $wp_filesystem, $_old_files, $wpdb;
 
 	@set_time_limit( 300 );
 
+	//Check for required PHP and MYSQL versions
+	if ( ( version_compare($wpdb->db_version(), '4.1.2', '<') && !file_exists( WP_CONTENT_DIR . '/db.php' ) ) || version_compare(phpversion(), '4.3', '<') ) {
+		return new WP_Error('not_compatible', __('The update cannot be install because you do not have the correct PHP (4.3 or newer) and mysql versions (4.1.2 or newer).') );
+	}
+	
 	// Sanity check the unzipped distribution
 	apply_filters('update_feedback', __('Verifying the unpacked files'));
 	if ( !$wp_filesystem->exists($from . '/wordpress/wp-settings.php') || !$wp_filesystem->exists($from . '/wordpress/wp-admin/admin.php') ||
