View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000535 | Xdebug | public | 2010-02-11 15:57 | 2010-03-20 18:43 | |
Reporter | gimler | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Summary | 0000535: code coverage and return before function|class ending | ||||
Description | when you have a sample like this class test $a = new test(); var_dump(xdebug_get_code_coverage()); you get this output: it doesn't detect the function declaration line (6) and the closing lines (8) also the line with the class definition is missing (4) i think it must check if the return line is the last line and than mark the line "" with the } as coveraged | ||||
Additional Information | PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan 6 2010 22:56:44) xdebug 2.0.5 | ||||
Tags | No tags attached. | ||||
Operating System | ubuntu 9.10 | ||||
PHP Version | 5.2.10 | ||||
|
This is not a bug. A "return" statement breaks straight out of the function and it doesn't hit the implicit "return NULL;" which is located at the closing brace: filename: /home/derick/dev/php/xdebug/tests/bug00535.phpt
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-02-11 15:57 | gimler | New Issue | |
2010-02-11 15:57 | gimler | Operating System | => ubuntu 9.10 |
2010-02-11 15:57 | gimler | PHP Version | => 5.2.10 |
2010-02-11 15:57 | gimler | Xdebug Version | => 2.0.5 |
2010-03-20 18:43 | derick | Note Added: 0001392 | |
2010-03-20 18:43 | derick | Status | new => resolved |
2010-03-20 18:43 | derick | Resolution | open => no change required |
2010-03-20 18:43 | derick | Assigned To | => derick |
2016-07-31 12:35 | derick | Category | Debug client (console) => debugclient (debugging tool) |
2016-07-31 12:35 | derick | Category | debugclient (debugging tool) => (No Category) |