Convert to mysqli
This commit converts all mysql_* function to the appropriate counterparts in mysqli. I used this tool for most of it: https://github.com/philip/MySQLConverterTool This makes it possible to continue using MysqlDumper with PHP 7.0
Dieser Commit ist enthalten in:
Ursprung
dd0e8aede7
Commit
5b995d339d
23 geänderte Dateien mit 210 neuen und 214 gelöschten Zeilen
|
|
@ -44,7 +44,7 @@ foreach ($configFiles as $configFile) {
|
|||
include($config['paths']['config'] . $configFile . '.php');
|
||||
$out = '';
|
||||
if (isset($config['dbconnection']) && is_resource($config['dbconnection'])) {
|
||||
mysql_close($config['dbconnection']);
|
||||
((is_null($___mysqli_res = mysqli_close($config['dbconnection']))) ? false : $___mysqli_res);
|
||||
$config['dbconnection'] = false;
|
||||
}
|
||||
SetDefault();
|
||||
|
|
@ -61,4 +61,4 @@ function output($message, $verbose)
|
|||
$message = str_replace("\n", NEWLINE, $message);
|
||||
echo $message . NEWLINE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren