8000 [HttpKernel] Fixes file_get_content in HttpCache's Store for PHP7.4+ by 0x346e3730 · Pull Request #41412 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpKernel] Fixes file_get_content in HttpCache's Store for PHP7.4+ #41412

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

Merged
merged 1 commit into from
May 26, 2021

Conversation

0x346e3730
Copy link
Contributor
@0x346e3730 0x346e3730 commented May 26, 2021
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

While trying to get 6.0 branch tests green, I encountered an error on multiple HttpKernel tests.
After investigating, it comes from the file_get_contents in the load method of the Store class from HttpCache. For obscure reasons, some calls are in errors and the content can't be read for "permission denied".
This is happening only on PHP 7.4.0+ (and that explains why the tests are green on the branch 5.4 as it runs php 7.2), adding the @ error suppressor fixes this.

Copy link
Member
@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm the issue and the patch.

@nicolas-grekas
Copy link
Member

Thank you @0x346e3730.

@nicolas-grekas nicolas-grekas merged commit 12030e5 into symfony:4.4 May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0