zf1s / zf1

Monorepo of a fork of Zend Framework 1, with all components split into individual composer packages. PHP 5.3-8.3 compatible.
BSD 3-Clause "New" or "Revised" License
57 stars 22 forks source link

[zend-loader] fix failing Zend_Loader_PluginLoaderTest on windows #154

Closed marcing closed 1 year ago

marcing commented 1 year ago

on php versions lower than 7.4, file_get_contents on flock-ed file returned empty string on Windows starting php 7.4, it throws an error "file_get_contents(): read of 8192 bytes failed with errno=13 Permission denied" see https://bugs.php.net/bug.php?id=79398

On windows, file lock needs to be released before reading file contents, even if it's within the same process.