phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

Newrelic causes error handlers loop to get stuck, tests run out of memory

Open janfejtek opened this issue 1 year ago • 3 comments

Q A
PHPUnit version 11.1.0
PHP version 8.2
Installation Method Composer

Summary

Library does not work on php with newrelic extension

Current behavior

When running test with php that contains newrelic extension, we get out of memory error. Loop here gets stuck https://github.com/sebastianbergmann/phpunit/blob/cef82dcdbead1dcda0a5af044640b13440c0f491/src/Framework/TestCase.php#L1901-L1922

How to reproduce

Expected behavior

There was similar issue in Symfony - https://github.com/symfony/symfony/issues/25774 . Used fix is here https://github.com/symfony/symfony/pull/25755/files

janfejtek avatar Apr 10 '24 12:04 janfejtek

Thank you for your report.

Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting.

Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue.

sebastianbergmann avatar Apr 10 '24 14:04 sebastianbergmann

@mvorisek What do you think?

sebastianbergmann avatar Apr 10 '24 14:04 sebastianbergmann

OP needs to provide minimal repro.

(also note the mentioned Symfony issue is from 2018, ie. quite unreleated)

mvorisek avatar Apr 10 '24 14:04 mvorisek

No feedback, closing.

sebastianbergmann avatar Sep 08 '24 15:09 sebastianbergmann