[xdebug-dev] xdebug xdebug/xdebug.c xdebug/xdebug_code_coverage.c - MFH: Two more code coverage fixes: elseif and return.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Wed, 13 Feb 2008 15:57:30 +0100

Date: Wed Feb 13 15:57:30 CET 2008
User: Derick Rethans
Directory: xdebug

Log Message:
[0.50]
- MFH: Two more code coverage fixes: elseif and return.

Modified files:
           xdebug/xdebug.c (version: 1.400.2.10)
           xdebug/xdebug_code_coverage.c (version: 1.32.2.9)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.400.2.9
retrieving revision 1.400.2.10
diff -u -r1.400.2.9 -r1.400.2.10
--- xdebug/xdebug.c:1.400.2.9 Wed Feb 13 11:12:20 2008 GMT
+++ xdebug/xdebug.c Wed Feb 13 13:57:30 2008 GMT
@@ -532,6 +532,7 @@
 XDEBUG_OPCODE_OVERRIDE(fetch_class)
 XDEBUG_OPCODE_OVERRIDE(fetch_constant)
 XDEBUG_OPCODE_OVERRIDE(concat)
+XDEBUG_OPCODE_OVERRIDE(isset_isempty_dim_obj)
 #endif
 
 
@@ -602,6 +603,7 @@
         XDEBUG_SET_OPCODE_OVERRIDE(fetch_class, ZEND_FETCH_CLASS);
         XDEBUG_SET_OPCODE_OVERRIDE(fetch_constant, ZEND_FETCH_CONSTANT);
         XDEBUG_SET_OPCODE_OVERRIDE(concat, ZEND_CONCAT);
+ XDEBUG_SET_OPCODE_OVERRIDE(isset_isempty_dim_obj, ZEND_ISSET_ISEMPTY_DIM_OBJ);
 #endif
 
         if (zend_xdebug_initialised == 0) {

[FILE: /xdebug/xdebug_code_coverage.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.32.2.8
retrieving revision 1.32.2.9
diff -u -r1.32.2.8 -r1.32.2.9
--- xdebug/xdebug_code_coverage.c:1.32.2.8 Wed Feb 13 12:59:48 2008 GMT
+++ xdebug/xdebug_code_coverage.c Wed Feb 13 13:57:30 2008 GMT
@@ -170,7 +170,7 @@
         /* Loop over the opcodes until the end of the array, or until a jump point has been found */
         xdebug_set_add(set, position);
         /*(fprintf(stderr, "XDEBUG Adding %d\n", position);)*/
- while (position < opa->size - 1) {
+ while (position < opa->size) {
 
                 /* See if we have a jump instruction */
                 if (xdebug_find_jump(opa, position, &jump_pos1, &jump_pos2)) {
@@ -192,7 +192,7 @@
                         /* fprintf(stderr, "Throw found at %d\n", position); */
                         /* Now we need to go forward to the first
                          * zend_fetch_class/zend_catch combo */
- while (position < opa->size - 1) {
+ while (position < opa->size) {
                                 if (opa->opcodes[position].opcode == ZEND_CATCH) {
                                         /* fprintf(stderr, "Found catch at %d\n", position); */
                                         position--;
Received on Wed Feb 13 2008 - 15:57:36 GMT

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