when open_basedir is active, phpmyadmin gets the upload dir (upload_tmp_dir or sys_temp_dir) and create a new filename at this line (import.php:383):
$import_file_new = $tmp_subdir . basename($import_file) . uniqid();
It gives an invalid path as sys_temp_dir never (?) ends with a slashe.
Similarly, upload_tmp_dir may end with or without a slashe.
In my case, the resulting path looks like '/var/lib/phpmyadmin/tmpphpSkVWnh'
phpmyadmin 4.2.5deb1
Thanks, you had a good starting patch but we cannot force a '/' character in the resulting path.
Final fix: https://github.com/phpmyadmin/phpmyadmin/commit/2b4ed225054fb331ac36ab5ef5040b0f4174d206 please confirm.
It's ok.