Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
MySQL version detection broken on installation
« on June 16th, 2013, 08:06 AM »
This caused me to uproot my localhost :lol:

Fix:
Code: [Select]
Index: root/install.php
===================================================================
--- root/install.php (revision 2166)
+++ root/install.php (working copy)
@@ -772,7 +772,7 @@
  }
 
  // Do they meet the install requirements?
- if ((version_compare($db['required_client'], preg_replace('~^\D*|\-.+?$~', '', mysqli_get_client_info())) > 0) || (version_compare($db['required_server'], preg_replace('~^\D*|\-.+?$~', '', mysqli_get_server_info())) > 0))
+ if ((version_compare($db['required_client'], preg_replace('~^\D*|\-.+?$~', '', mysqli_get_client_info())) > 0) || (version_compare($db['required_server'], preg_replace('~^\D*|\-.+?$~', '', mysqli_get_server_info($db_connection))) > 0))
  {
  $incontext['error'] = sprintf($txt['error_db_too_low'], 'Server: ' . mysqli_get_server_info() . ' / Client: ' . mysqli_get_client_info());
  return false;
The way it's meant to be

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: MySQL version detection broken on installation
« Reply #1, on June 16th, 2013, 12:22 PM »
Oops, sorry about that!

Also, @Nao: flexbox type bug - I can't use the horizontal scrollbar in Chrome for the above code block. The only way I can scroll across is to select the text and drag it that way. Chrome 28 here.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial