Skip to content

[3.0] Use PCOV to avoid segfault with Xdebug 3.4.2 on PHP 8.0+ #235

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from

Conversation

WyriHaximus
Copy link
Member

Builds on #223, #222, #218, and bases on https://github .com/reactphp/async/pull/92 .

@WyriHaximus WyriHaximus added this to the v3.0.0 milestone Jul 9, 2025
@WyriHaximus WyriHaximus added the bug label Jul 9, 2025
@WyriHaximus WyriHaximus force-pushed the 3.x-using-pcov-on-PHP-8.0PLUS branch 2 times, most recently from 8556eb8 to 839d18d Compare July 9, 2025 11:23
@WyriHaximus WyriHaximus force-pushed the 3.x-using-pcov-on-PHP-8.0PLUS branch from 839d18d to 8b15da7 Compare July 9, 2025 11:28
Running the test suite on PHP 8+ results in the following two errors on
Ubuntu 24.04. This PR doesn't aim to fix those errors, but to ensure we
have a working CI test environment.

```
There were 2 failures:

1) React\Tests\Dns\Query\TcpTransportExecutorTest::testQueryStaysPendingWhenClientCanNotSendExcessiveMessageInOneChunkWhenServerClosesSocket
React\EventLoop\LoopInterface::removeWriteStream(resource(545) of type (stream)) was not expected to be called.

/home/runner/work/dns/dns/src/Query/TcpTransportExecutor.php:273
/home/runner/work/dns/dns/tests/Query/TcpTransportExecutorTest.php:347

2) React\Tests\Dns\Query\TcpTransportExecutorTest::testQueryRejectsWhenClientKeepsSendingWhenServerClosesSocketWithoutCallingCustomErrorHandler
Failed asserting that exception of type "Error" matches expected exception "RuntimeException". Message was: "Can only throw objects" at
/home/runner/work/dns/dns/tests/Query/TcpTransportExecutorTest.php:413
```
@WyriHaximus WyriHaximus requested review from clue and PaulRotmann July 9, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant