View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001294 | Xdebug | Uncategorized | public | 2016-04-12 13:09 | 2016-12-05 15:20 |
Reporter | RQuadling | Assigned To | derick | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Platform | Intel | OS | Windows | OS Version | 10 |
Product Version | 2.4.0 | ||||
Summary | 0001294: VERY long delays when execution exceptions. | ||||
Description | Running phpunit from the command for my tests with xDebug loaded. When it gets to an exception that is expected to be caught, the exception seems to hang the code with a 25% processor utilisation (4 core setup) for a very long time for a single test. Without xDebug loaded, the exception is caught and the code continues appropriately. I was initially running the code via PHPStorm, but reduced all the code (as best as I can) to a single file. Does require the underlying packages, so a composer.json is supplied in the code. | ||||
Steps To Reproduce | Run er.php to provide contents of composer.json. Ideally run this in a directory without an composer related content. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | Windows 10 | ||||
PHP Version | 5.4.45-5.4.50 | ||||
|
Cannot run code coverage from PHPStorm with this particular pattern of code. |
|
I can't reproduce this: derick@whisky:/tmp $ time php er.php real 0m0.079s Can you still reproduce this with latest PHP and Xdebug? cheers, |
|
I'm back on a Mac again. And not seeing the problem there. $ time php -d zend_extension=xdebug.so vendor/bin/phpunit --coverage-html er er.php --debug Starting test 'cutDownCriteriaClassTester::testReset'. Time: 286 ms, Memory: 12.00MB OK (1 test, 0 assertions) Generating code coverage report in HTML format ... done real 0m1.029s Changed the test to cause it to throw the exception ... $ time php -d zend_extension=xdebug.so vendor/bin/phpunit --coverage-html erCC er.php --debug Starting test 'cutDownCriteriaClassTester::testReset'. Time: 238 ms, Memory: 10.00MB There was 1 error: 1) cutDownCriteriaClassTester::testReset /Users/richardquadling/PHP/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php:36 FAILURES! Generating code coverage report in HTML format ... done real 0m0.774s Which is all as expected. Close this issue. |
|
Thanks for checking this again Richard. I will close it then. |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-04-12 13:09 | RQuadling | New Issue | |
2016-04-12 13:09 | RQuadling | File Added: er.php | |
2016-04-12 14:01 | RQuadling | Note Added: 0003582 | |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2016-12-04 15:33 | derick | Note Added: 0003904 | |
2016-12-04 15:33 | derick | Assigned To | => derick |
2016-12-04 15:33 | derick | Status | new => feedback |
2016-12-05 15:08 | RQuadling | Note Added: 0003945 | |
2016-12-05 15:08 | RQuadling | Status | feedback => assigned |
2016-12-05 15:20 | derick | Note Added: 0003946 | |
2016-12-05 15:20 | derick | Status | assigned => resolved |
2016-12-05 15:20 | derick | Resolution | open => unable to reproduce |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |