mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-44300 force PHP 5.6.x to return raw file names for our own guessing
This commit is contained in:
parent
a8db93c5ac
commit
9c140a681e
1 changed files with 3 additions and 1 deletions
|
@ -263,7 +263,9 @@ class zip_archive extends file_archive {
|
|||
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) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue