Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Process] Fixed input/output error on PHP 7.4#36380

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:4.4fromenflow:fixFreadInputOutput
Apr 10, 2020

Conversation

@mbardelmeijer
Copy link
Contributor

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#34945
LicenseMIT
Doc PR

This PR aims to fix the error from#34945, but i'm unsure if this is the best solution. The issue is that on PHP 7.4 the input/output error may come up.

php.net/manual/en/migration74.incompatible.php#migration74.incompatible.core.fread-fwrite

fread() and fwrite() will now return FALSE if the operation failed. Previously an empty string or 0 was returned. EAGAIN/EWOULDBLOCK are not considered failures. These functions now also raise a notice on failure, such as when trying to write to a read only file resource.

@nicolas-grekas
Copy link
Member

Thank you@mbardelmeijer.

mbardelmeijer reacted with laugh emoji

@nicolas-grekasnicolas-grekas merged commitf2d4a29 intosymfony:4.4Apr 10, 2020
This was referencedApr 28, 2020
bcremer added a commit to bcremer/deployer that referenced this pull requestMay 12, 2020
The symfony/process v5.0.8 release contains a fix for the annoyinginput/output error messages on PHP 7.4.Example:fread(): read of 8192 bytes failed with errno=5 Input/output errorSee:symfony/symfony#36380Package operations: 0 installs, 7 updates, 0 removals  - Updating symfony/polyfill-php73 (v1.15.0 => v1.16.0)  - Updating symfony/polyfill-mbstring (v1.15.0 => v1.16.0)  - Updating symfony/console (v5.0.7 => v5.0.8)  - Updating symfony/process (v5.0.7 => v5.0.8)  - Updating symfony/polyfill-ctype (v1.15.0 => v1.16.0)  - Updating symfony/yaml (v5.0.7 => v5.0.8)  - Updating phpdocumentor/reflection-common (2.0.0 => 2.1.0)
antonmedv pushed a commit to deployphp/deployer that referenced this pull requestMay 15, 2020
The symfony/process v5.0.8 release contains a fix for the annoyinginput/output error messages on PHP 7.4.Example:fread(): read of 8192 bytes failed with errno=5 Input/output errorSee:symfony/symfony#36380Package operations: 0 installs, 7 updates, 0 removals  - Updating symfony/polyfill-php73 (v1.15.0 => v1.16.0)  - Updating symfony/polyfill-mbstring (v1.15.0 => v1.16.0)  - Updating symfony/console (v5.0.7 => v5.0.8)  - Updating symfony/process (v5.0.7 => v5.0.8)  - Updating symfony/polyfill-ctype (v1.15.0 => v1.16.0)  - Updating symfony/yaml (v5.0.7 => v5.0.8)  - Updating phpdocumentor/reflection-common (2.0.0 => 2.1.0)Co-authored-by: Benjamin Cremer <benjamin.cremer@check24.de>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

3 participants

@mbardelmeijer@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp