Actually set MYSQLI_OPT_LOCAL_INFILE
1e6b740e tried to set this but failed due to https://bugs.php.net/77496
and nobody probably ever tested it.
Tested: Executed `LOAD DATA LOCAL INFILE 'README' INTO TABLE text(text)`
SQL command successfully before, unsuceesfully after.
Signed-off-by: Jakub Vrana <jakub@vrana.cz>
This commit is contained in:
parent
2f4a011a89
commit
c5e01f84ad
@ -88,12 +88,6 @@ class DbiMysqli implements DbiExtension
|
||||
|
||||
$link = mysqli_init();
|
||||
|
||||
if (defined('PMA_ENABLE_LDI')) {
|
||||
mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, true);
|
||||
} else {
|
||||
mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, false);
|
||||
}
|
||||
|
||||
$client_flags = 0;
|
||||
|
||||
/* Optionally compress connection */
|
||||
@ -175,6 +169,12 @@ class DbiMysqli implements DbiExtension
|
||||
return false;
|
||||
}
|
||||
|
||||
if (defined('PMA_ENABLE_LDI')) {
|
||||
mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, true);
|
||||
} else {
|
||||
mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, false);
|
||||
}
|
||||
|
||||
return $link;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user