mirror of
https://github.com/moodle/moodle.git
synced 2025-07-27 09:20:36 +02:00
MDL-44300 force PHP 5.6.x to return raw file names for our own guessing
This commit is contained in:
@@ -263,7 +263,9 @@ class zip_archive extends file_archive {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->za->statIndex($index);
|
// PHP 5.6 introduced encoding guessing logic, we need to fall back
|
||||||
|
// to raw ZIP_FL_ENC_RAW (== 64) to get consistent results as in PHP 5.5.
|
||||||
|
$result = $this->za->statIndex($index, 64);
|
||||||
|
|
||||||
if ($result === false) {
|
if ($result === false) {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user