View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001879 | Xdebug | Installation | public | 2020-11-05 16:02 | 2020-11-10 14:19 |
Reporter | rjung | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Product Version | 3.0.0beta1 | ||||
Summary | 0001879: Bundled unit tests miss to load xdebug in debugged child process | ||||
Description | The bundled unit tests use a class tests/debugger/dbgp/dbgpclient.php to run PHP child processes under the debugger. That class starts PHP using proc_open and sets a few xdebug ini parameters for it, but it misses to actually load the xdebug extension. The Makefile only loads xdebug in the scripts started via run-tests.php, but this doesn't get inherited to the next layer of child processes. For an environment with dynamically loaded xdebug, the following fix looks appropriate:
| ||||
Steps To Reproduce | Build PHP with xdebug dynamically loadable and then run "make test". Nearly all tests from tests/debugger will FAIL. | ||||
Tags | test | ||||
Operating System | Any | ||||
PHP Version | 8.0-dev | ||||
|
FWIW, "make test" is not something I support or use. It comes from PHP's extension building system, but I need something more so instead use "php run-xdebug-tests.php". Your "patch" also does not look like something I can merge, as my set-up has "zend_extension=xdebug.so" in php.ini, and loading the extension twice, would make the tests fail. The README.rst for testing says:
|
|
Would it be possible, that you give an indication how you run your provided unit tests? You mentioned "php run-xdebug-tests.php"? Should it work just like that, or do you have to set environment variables, give arguments, provide a specific ini file or similar? |
|
Oups, sorry, just saw you mentioned https://github.com/xdebug/xdebug#testing in another ticket. Will have a look there. Thanks. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-11-05 16:02 | rjung | New Issue | |
2020-11-05 16:02 | rjung | Tag Attached: test | |
2020-11-05 16:37 | derick | Assigned To | => derick |
2020-11-05 16:37 | derick | Status | new => resolved |
2020-11-05 16:37 | derick | Resolution | open => won't fix |
2020-11-05 16:37 | derick | Note Added: 0005502 | |
2020-11-05 16:37 | derick | Description Updated | |
2020-11-10 14:17 | rjung | Note Added: 0005510 | |
2020-11-10 14:19 | rjung | Note Added: 0005511 |