[xdebug-dev] xdebug xdebug/xdebug_code_coverage.c - PHP 4.3 and 4.4 compatibility.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sun, 21 Oct 2007 12:45:25 +0200

Date: Sun Oct 21 12:45:25 CEST 2007
User: Derick Rethans
Directory: xdebug

Log Message:
[0.05]
- PHP 4.3 and 4.4 compatibility.

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

[FILE: /xdebug/xdebug_code_coverage.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- xdebug/xdebug_code_coverage.c:1.33 Wed Oct 10 22:54:09 2007 GMT
+++ xdebug/xdebug_code_coverage.c Sun Oct 21 08:45:25 2007 GMT
@@ -289,10 +289,14 @@
 
         new_filename = va_arg(args, char*);
         if (ce->type == ZEND_USER_CLASS) {
+#if PHP_MAJOR_VERSION >= 5
                 if (!(ce->ce_flags & ZEND_XDEBUG_VISITED)) {
                         ce->ce_flags |= ZEND_XDEBUG_VISITED;
                         zend_hash_apply_with_arguments(&ce->function_table, (apply_func_args_t) prefill_from_function_table, 1, new_filename);
                 }
+#else
+ zend_hash_apply_with_arguments(&ce->function_table, (apply_func_args_t) prefill_from_function_table, 1, new_filename);
+#endif
         }
 
         return ZEND_HASH_APPLY_KEEP;
Received on Sun Oct 21 2007 - 12:45:29 BST

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