X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Ffilebackend%2FFSFileBackend.php;h=b257e27909d00d5d56a72aa87eaa61549f299e9d;hb=51e40a712f2f2eb57216b26a16c91d14f74d5cf2;hp=4f0805bd2ab8b7e983ad46d0ba34d889b6df96c7;hpb=c1d5106e1d0ff2634d3c23977ca8fc32e38ec426;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/filebackend/FSFileBackend.php b/includes/libs/filebackend/FSFileBackend.php index 4f0805bd2a..b257e27909 100644 --- a/includes/libs/filebackend/FSFileBackend.php +++ b/includes/libs/filebackend/FSFileBackend.php @@ -19,7 +19,6 @@ * * @file * @ingroup FileBackend - * @author Aaron Schulz */ use Wikimedia\Timestamp\ConvertibleTimestamp; @@ -100,7 +99,13 @@ class FSFileBackend extends FileBackendStore { } public function getFeatures() { - return !$this->isWindows ? FileBackend::ATTR_UNICODE_PATHS : 0; + if ( $this->isWindows && version_compare( PHP_VERSION, '7.1', 'lt' ) ) { + // PHP before 7.1 used 8-bit code page for filesystem paths on Windows; + // See http://php.net/manual/en/migration71.windows-support.php + return 0; + } else { + return FileBackend::ATTR_UNICODE_PATHS; + } } protected function resolveContainerPath( $container, $relStoragePath ) {