Changeset 11 for trunk/coverage.c
- Timestamp:
- 2006-05-24T09:52:48+02:00 (7 years ago)
- File:
-
- 1 edited
-
trunk/coverage.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverage.c
r1 r11 5 5 # include <sys/file.h> 6 6 #endif 7 #include <sys/types.h> 8 #include <sys/stat.h> 9 #include <fcntl.h> 10 7 11 #include "stack.h" 8 12 #include "xcache_globals.h" … … 305 309 zend_uint size; 306 310 coverage_t cov; 307 int i;311 zend_uint i; 308 312 309 313 if (op_array->type != ZEND_USER_FUNCTION) { … … 312 316 313 317 size = xc_coverage_get_op_array_size_no_tail(op_array); 314 cov = xc_coverage_get(op_array->filename );315 for (i = 0; i < size; i ++) {318 cov = xc_coverage_get(op_array->filename TSRMLS_CC); 319 for (i = 0; i < size; i ++) { 316 320 switch (op_array->opcodes[i].opcode) { 317 321 case ZEND_EXT_STMT: … … 351 355 void xc_coverage_handle_ext_stmt(zend_op_array *op_array, zend_uchar op) /* {{{ */ 352 356 { 357 TSRMLS_FETCH(); 358 353 359 if (XG(coveragedumper) && XG(coverages)) { 354 TSRMLS_FETCH();355 360 int size = xc_coverage_get_op_array_size_no_tail(op_array); 356 361 int oplineno = (*EG(opline_ptr)) - op_array->opcodes; 357 362 if (oplineno < size) { 358 xc_coverage_add_hits(xc_coverage_get(op_array->filename ), (*EG(opline_ptr))->lineno, 1 TSRMLS_CC);363 xc_coverage_add_hits(xc_coverage_get(op_array->filename TSRMLS_CC), (*EG(opline_ptr))->lineno, 1 TSRMLS_CC); 359 364 } 360 365 }
Note: See TracChangeset
for help on using the changeset viewer.

