Permalink
Browse files

This commit was manufactured by cvs2svn to create tag 'XDEBUG_2_0_1'.

SVN Rev: 2551
  • Loading branch information...
1 parent 0dc8c72 commit 9db0a2a03eb996bfedfc7021b764fb2dea772bdb Unknown Author committed Oct 21, 2007
Showing with 4 additions and 0 deletions.
  1. +4 −0 xdebug_code_coverage.c
View
@@ -289,10 +289,14 @@ static int prefill_from_class_table(zend_class_entry *class_entry, int num_args,
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;

0 comments on commit 9db0a2a

Please sign in to comment.