View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0000829 | Xdebug | Code Coverage | public | 2012-05-10 09:02 | 2020-03-12 17:13 | 
| Reporter | phon | Assigned To | derick | ||
| Priority | normal | Severity | feature | Reproducibility | always | 
| Status | resolved | Resolution | not fixable | ||
| Product Version | 2.2.0 | ||||
| Target Version | 2.2.1 | Fixed in Version | 2.2.1 | ||
| Summary | 0000829: Code coverage is wrong when using dim assign | ||||
| Description | Description:<?php $result = array( var_dump(xdebug_get_code_coverage()); ?> Expected result:array(1) { Actual result:array(1) {  | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 5.2.10 | ||||
| 
		 | 
	
	 Sadly, this is not something I can fix. PHP is a bit weird with array assignments. Internally, the code that PHP sees is: 
compiled vars: !0 = $result line # * op fetch ext return operands 2     0  >   EXT_STMT 
5     4      EXT_STMT 
12    16      EXT_STMT With the array init and assignment on line 5 and 7: 
  | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2012-05-10 09:02 | phon | New Issue | |
| 2012-05-28 08:25 | derick | Target Version | => 2.2.1 | 
| 2012-05-28 12:10 | derick | Note Added: 0002210 | |
| 2012-05-28 12:10 | derick | Status | new => resolved | 
| 2012-05-28 12:10 | derick | Resolution | open => not fixable | 
| 2012-05-28 12:10 | derick | Assigned To | => derick | 
| 2012-05-28 12:12 | derick | Note Edited: 0002210 | |
| 2012-05-28 12:13 | derick | Note Edited: 0002210 | |
| 2012-05-28 12:13 | derick | Note Edited: 0002210 | |
| 2012-05-28 12:14 | derick | Note Edited: 0002210 | |
| 2012-07-14 19:38 | derick | Fixed in Version | => 2.2.1 | 
| 2020-03-12 16:55 | derick | Severity | minor => feature | 
| 2020-03-12 17:13 | derick | Category | Feature/Change request => Code Coverage |