Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

marcing
Copy link
Contributor

@marcing marcing commented Dec 2, 2022

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.

@falkenhawk falkenhawk changed the title [zend-loader] proposal of fix for failing "tests/Zend/Loader/PluginLoaderTest.php" [zend-loader] fix failing Zend_Loader_PluginLoaderTest on windows Dec 2, 2022
@falkenhawk falkenhawk merged commit e0b1c65 into master Dec 2, 2022
@falkenhawk falkenhawk deleted the fix-zend-loader-tests-win-flock branch December 4, 2022 09:30
@falkenhawk falkenhawk mentioned this pull request Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants