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

[Messenger] Use extension_loaded call to check if pcntl extension is loaded, as SIGTERM might be set be swoole#52588

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
derrabus merged 1 commit intosymfony:6.3fromSerheyDolgushev:fix-pcntl-check
Nov 14, 2023

Conversation

@SerheyDolgushev
Copy link
Contributor

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#52586
LicenseMIT

It was assumed. that SIGTERM constant is set only bypcntl PHP extension. But it is also set byswoole. So in some casesSIGTERM might be set whenpcntl is disabled butswoole is enabled.

michaelpetri reacted with heart emoji
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.

Boo on swoole for this one! :)

derrabus reacted with laugh emojiderrabus reacted with heart emoji
@carsonbotcarsonbot changed the titleUse extension_loaded call to check if pcntl extension is loaded, as SIGTERM might be set be swoole[Messenger] Use extension_loaded call to check if pcntl extension is loaded, as SIGTERM might be set be swooleNov 14, 2023
@SerheyDolgushev
Copy link
ContributorAuthor

@derrabus thanks a lot for your patience and help on this case.

xabbuh and derrabus reacted with heart emoji

Copy link
Member

@xabbuhxabbuh left a comment

Choose a reason for hiding this comment

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

works for me, but it might be worth to also report this to Swoole

@SerheyDolgushev
Copy link
ContributorAuthor

works for me, but it might be worth to also report this to Swoole

In theory, there might be other PHP extensions that will setSIGTERM constant. So it is not very accurate to assume thatpcntl PHP extension is enabled ifSIGTERM is defined. It is much more straightforward and reliable to useextension_loaded for this purpose.

@derrabus
Copy link
Member

Thank you@SerheyDolgushev.

@derrabusderrabus merged commit4145dee intosymfony:6.3Nov 14, 2023
This was referencedNov 15, 2023
@fabpotfabpot mentioned this pull requestNov 29, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@derrabusderrabusderrabus approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

5 participants

@SerheyDolgushev@derrabus@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp