[xdebug-dev] xdebug xdebug/xdebug_code_coverage.c - The foreach loop contruct contains some jump information as well.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Mon, 25 Sep 2006 23:08:25 +0200

Date: Mon Sep 25 23:08:25 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- The foreach loop contruct contains some jump information as well.

Modified files:
           xdebug/xdebug_code_coverage.c (version: 1.22)

[FILE: /xdebug/xdebug_code_coverage.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- xdebug/xdebug_code_coverage.c:1.21 Mon Sep 25 18:20:01 2006 GMT
+++ xdebug/xdebug_code_coverage.c Mon Sep 25 19:08:25 2006 GMT
@@ -140,6 +140,10 @@
                         *jmp1 = opcode.opcode == ZEND_BRK ? el->brk : el->cont;
                         return 1;
                 }
+ } else if (opcode.opcode == ZEND_FE_RESET || opcode.opcode == ZEND_FE_FETCH) {
+ *jmp1 = position + 1;
+ *jmp2 = opcode.op2.u.opline_num;
+ return 1;
         }
         return 0;
 }
Received on Mon Sep 25 2006 - 23:08:31 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST