[xdebug-dev] xdebug xdebug/xdebug_code_coverage.c - ZEND_THROW only exists in Zend Engine 2.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sun, 8 Oct 2006 00:10:58 +0200

Date: Sun Oct 8 00:10:58 CEST 2006
User: Derick Rethans
Directory: xdebug

Log Message:
[0.05]
- ZEND_THROW only exists in Zend Engine 2.

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

[FILE: /xdebug/xdebug_code_coverage.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- xdebug/xdebug_code_coverage.c:1.23 Tue Sep 26 09:48:47 2006 GMT
+++ xdebug/xdebug_code_coverage.c Sat Oct 07 20:10:58 2006 GMT
@@ -189,11 +189,13 @@
                         /*(fprintf(stderr, "XDEBUG Return found\n");)*/
                         break;
                 }
+#ifdef ZEND_ENGINE_2
                 /* See if we have a throw instruction */
                 if (opa->opcodes[position].opcode == ZEND_THROW) {
- /* fprintf(stderr, "X/* Throw found\n"); */
+ /* fprintf(stderr, "X* Throw found\n"); */
                         break;
                 }
+#endif
 
                 position++;
                 /*(fprintf(stderr, "XDEBUG Adding %d\n", position);)*/
Received on Sun Oct 08 2006 - 00:11:02 BST

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