Skip to content

Fix race in ghsa-r6x9-5r99-36j7 tests - #25747

Open
iluuu1994 wants to merge 3 commits into
php:PHP-8.2from
iluuu1994:fix-ghsa-r6x9-5r99-36j7-race
Open

iluuu1994 wants to merge 3 commits into
php:PHP-8.2from
iluuu1994:fix-ghsa-r6x9-5r99-36j7-race

Conversation

@iluuu1994

@iluuu1994 iluuu1994 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Closing the connection makes mysqli send a COM_QUIT packet, but we don't wait for it in $process->terminate() unless $wait is set to true. Avoid by not closing the connection, as otherwise the test expectation changes.

See https://github.com/php/php-src/actions/runs/45524037922/job/138903310881.

Closing the connection makes mysqli send a COM_QUIT packet, but we don't wait
for it in $process->terminate() unless $wait is set to true. Avoid by not
closing the connection, as otherwise the test expectation changes.
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
@iluuu1994

Copy link
Copy Markdown
Member Author

@kamil-tekiela Thanks, adjusted accordingly.

@kamil-tekiela kamil-tekiela left a comment

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.

Looks good if CI is happy.

$stmt will close during shutdown and send COM_STMT_CLOSE. If the process is
already gone, the stream is too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants