Skip to content

ext/pcntl: applied fixers to improve test robustness - #23037

Merged
LamentXU123 merged 1 commit into
php:masterfrom
NickSdot:test/hardening/ext-pcntl
Aug 14, 2026
Merged

ext/pcntl: applied fixers to improve test robustness#23037
LamentXU123 merged 1 commit into
php:masterfrom
NickSdot:test/hardening/ext-pcntl

Conversation

@NickSdot

@NickSdot NickSdot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Asserts error class; extracted from: #22799

C::$a + C::$a;
posix_kill(posix_getpid(), SIGTERM) + C::$cond;
} catch (Throwable $ex) {
echo get_class($ex) , " : " , $ex->getMessage() , "\n";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This (and following) safe us a function call; not style-only.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

note: lgtm but we re not saving any function call despite the appearance

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looked it up. Got it, had no idea it's special. Thanks!

@NickSdot
NickSdot marked this pull request as ready for review August 4, 2026 15:56
@NickSdot
NickSdot requested a review from devnexen as a code owner August 4, 2026 15:56
@LamentXU123
LamentXU123 merged commit a3a6c77 into php:master Aug 14, 2026
18 checks passed
@NickSdot
NickSdot deleted the test/hardening/ext-pcntl branch August 14, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants