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

Prevent warning in proc_open()#36141

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
fabpot merged 1 commit intosymfony:3.4fromBenMorel:patch-8
Mar 20, 2020
Merged

Prevent warning in proc_open()#36141

fabpot merged 1 commit intosymfony:3.4fromBenMorel:patch-8
Mar 20, 2020

Conversation

@BenMorel
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Ticketsnone
LicenseMIT
Doc PRnone

In addition to returningfalse,proc_open() triggers a warning when it fails. For example:

Warning: proc_open(): fork failed - Cannot allocate memory

When using theErrorHandler, the warning gets promoted to an exception, and the next line,if (! is_resource(..., is not executed. This mutes the warning and ensures that the next line is always executed and the proper exception is thrown.

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

please apply fabbot's patch and good to me

@BenMorel
Copy link
ContributorAuthor

@nicolas-grekas Done!

@fabpot
Copy link
Member

Thank you@BenMorel.

@fabpotfabpot merged commit98da88f intosymfony:3.4Mar 20, 2020
@BenMorel
Copy link
ContributorAuthor

Thank you. Will this be merged in 4.x and 5.x?

This was referencedMar 27, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@BenMorel@fabpot@nicolas-grekas@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp