aws icon indicating copy to clipboard operation
aws copied to clipboard

`\AsyncAws\Core\Tests\Unit\ResultTest::testWaitWithExceptionOnDestruct` fails when running tests with xdebug enabled

Open stof opened this issue 2 months ago • 1 comments

When running tests with xdebug enabled (in develop mode in my case), \AsyncAws\Core\Tests\Unit\ResultTest::testWaitWithExceptionOnDestruct fails because the Result is not destructed inside the test.

My debugging made me discover that the UnparsableResponse exception that is used by the AwsErrorFactory layer and caught in the Response object is somehow increasing the refcount of the Result object (probably due to its stack trace) when xdebug is loaded even when that exception goes out of scope.

stof avatar Oct 28 '25 21:10 stof

This is a known issue in XDebug 3.3+: https://bugs.xdebug.org/view.php?id=2222

stof avatar Nov 07 '25 11:11 stof