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

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

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

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

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

[FILE: /xdebug/xdebug_code_coverage.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.32.2.1
retrieving revision 1.32.2.2
diff -u -r1.32.2.1 -r1.32.2.2
--- xdebug/xdebug_code_coverage.c:1.32.2.1 Wed Oct 10 22:49:11 2007 GMT
+++ xdebug/xdebug_code_coverage.c Sun Oct 21 08:45:38 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:42 BST

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