Skip to content

Conversation

@kynx
Copy link

@kynx kynx commented Nov 12, 2025

This fixes #6410

@kynx kynx changed the base branch from main to 12.5 November 12, 2025 22:10
@kynx kynx changed the base branch from 12.5 to 12.4 November 12, 2025 22:10
@sebastianbergmann
Copy link
Owner

@staabm Can you have a look at this? Thanks!

composer.json Outdated
},
"require-dev": {
"ext-pcntl": "*"
},

Choose a reason for hiding this comment

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

composer.lock needs to be updated after composer.json is changed. This is the reason why the CI pipeline failed.

Copy link
Author

Choose a reason for hiding this comment

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

I've removed it as suggested in #6411 (comment)

@@ -0,0 +1,23 @@
--TEST--
ShutdownHandler does not output when child process exits
--FILE--

Choose a reason for hiding this comment

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

This needs a --SKIPIF-- section to skip the test when the pcntl extension is not available.

Choose a reason for hiding this comment

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

Also note that we might not set up PHP with the pcntl extension in our CI pipeline yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also note that we might not set up PHP with the pcntl extension in our CI pipeline yet.

we need this change in earlier release branches. therefore I am doing it here: #6412

Copy link
Author

Choose a reason for hiding this comment

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

I've added the --SKIPIF--

@@ -0,0 +1,23 @@
--TEST--
ShutdownHandler does not output when child process exits
--FILE--
Copy link
Contributor

Choose a reason for hiding this comment

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

needs a SKIPIF whether pcntl extension is available

composer.json Outdated
Comment on lines 51 to 53
"require-dev": {
"ext-pcntl": "*"
},
Copy link
Contributor

@staabm staabm Nov 13, 2025

Choose a reason for hiding this comment

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

I don't think we need this change, because we need pcntl only for this single test but not for general development of phpunit.

getmypid() seems available even without pcntl.

we already have other tests depending on pcntl without this setting

Copy link
Author

Choose a reason for hiding this comment

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

OK, done. Yes, getmypid() is part of the core.

Comment on lines 7 to 8
$_SERVER['argv'][] = '--filter';
$_SERVER['argv'][] = 'testChildProcessOutput';
Copy link
Contributor

@staabm staabm Nov 13, 2025

Choose a reason for hiding this comment

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

we can drop the --filter testChildProcessOutput - it's unnecessary

Copy link
Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

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

lgtm - thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ShutdownHandler called on child process

3 participants