Merge pull request #14886 from vrana/master
Actually set MYSQLI_OPT_LOCAL_INFILE
This commit is contained in:
commit
98506151d4
@ -58,12 +58,6 @@ class DbiMysqli implements DbiExtension
|
||||
|
||||
$mysqli = \mysqli_init();
|
||||
|
||||
if (defined('PMA_ENABLE_LDI')) {
|
||||
$mysqli->options(MYSQLI_OPT_LOCAL_INFILE, true);
|
||||
} else {
|
||||
$mysqli->options(MYSQLI_OPT_LOCAL_INFILE, false);
|
||||
}
|
||||
|
||||
$client_flags = 0;
|
||||
|
||||
/* Optionally compress connection */
|
||||
@ -142,6 +136,12 @@ class DbiMysqli implements DbiExtension
|
||||
return false;
|
||||
}
|
||||
|
||||
if (defined('PMA_ENABLE_LDI')) {
|
||||
$mysqli->options(MYSQLI_OPT_LOCAL_INFILE, true);
|
||||
} else {
|
||||
$mysqli->options(MYSQLI_OPT_LOCAL_INFILE, false);
|
||||
}
|
||||
|
||||
return $mysqli;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user