[xdebug-dev] xdebug xdebug/xdebug.c xdebug/xdebug_code_coverage.c - More tweaks for code coverage.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 29 Aug 2006 18:44:06 +0200

Date: Tue Aug 29 18:44:06 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- More tweaks for code coverage.

Modified files:
           xdebug/xdebug.c (version: 1.333)
           xdebug/xdebug_code_coverage.c (version: 1.18)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.332
retrieving revision 1.333
diff -u -r1.332 -r1.333
--- xdebug/xdebug.c:1.332 Tue Aug 29 07:18:54 2006 GMT
+++ xdebug/xdebug.c Tue Aug 29 14:44:06 2006 GMT
@@ -502,6 +502,8 @@
 XDEBUG_OPCODE_OVERRIDE(assign)
 XDEBUG_OPCODE_OVERRIDE(add_array_element)
 XDEBUG_OPCODE_OVERRIDE(return)
+XDEBUG_OPCODE_OVERRIDE(ext_stmt)
+XDEBUG_OPCODE_OVERRIDE(raise_abstract_error)
 #endif
 
 
@@ -547,6 +549,8 @@
         XDEBUG_SET_OPCODE_OVERRIDE(assign, ZEND_ASSIGN);
         XDEBUG_SET_OPCODE_OVERRIDE(add_array_element, ZEND_ADD_ARRAY_ELEMENT);
         XDEBUG_SET_OPCODE_OVERRIDE(return, ZEND_RETURN);
+ XDEBUG_SET_OPCODE_OVERRIDE(ext_stmt, ZEND_EXT_STMT);
+ XDEBUG_SET_OPCODE_OVERRIDE(raise_abstract_error, ZEND_RAISE_ABSTRACT_ERROR);
 #endif
 
         if (zend_xdebug_initialised == 0) {

[FILE: /xdebug/xdebug_code_coverage.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- xdebug/xdebug_code_coverage.c:1.17 Mon May 15 19:34:05 2006 GMT
+++ xdebug/xdebug_code_coverage.c Tue Aug 29 14:44:06 2006 GMT
@@ -79,7 +79,13 @@
 
 static void prefil_from_opcode(function_stack_entry *fse, char *fn, zend_op opcode TSRMLS_DC)
 {
- if (opcode.opcode != ZEND_NOP && opcode.opcode != ZEND_EXT_NOP) {
+ if (
+ opcode.opcode != ZEND_NOP &&
+ opcode.opcode != ZEND_EXT_NOP &&
+ opcode.opcode != ZEND_RECV &&
+ opcode.opcode != ZEND_RECV_INIT &&
+ opcode.opcode != ZEND_VERIFY_ABSTRACT_CLASS
+ ) {
                 xdebug_count_line(fn, opcode.lineno, 1 TSRMLS_CC);
         }
 }
Received on Tue Aug 29 2006 - 18:44:08 BST

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