Date: Wed Nov 21 14:42:42 CET 2007
User: Derick Rethans
Directory: xdebug
Log Message:
[0.25]
- MFH: Use the op_array ctor handler.
Modified files:
xdebug/xdebug.c (version: 1.400.2.7)
[FILE: /xdebug/xdebug.c]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.400.2.6
retrieving revision 1.400.2.7
diff -u -r1.400.2.6 -r1.400.2.7
--- xdebug/xdebug.c:1.400.2.6 Sat Oct 27 16:25:41 2007 GMT
+++ xdebug/xdebug.c Wed Nov 21 12:42:42 2007 GMT
@@ -2336,8 +2336,6 @@
op_array = old_compile_file(file_handle, type TSRMLS_CC);
if (op_array) {
- op_array->reserved[XG(reserved_offset)] = 0;
-
if (XG(do_code_coverage) && XG(code_coverage_unused)) {
xdebug_prefill_code_coverage(op_array TSRMLS_CC);
}
@@ -3087,6 +3085,11 @@
/* Do nothing. */
}
+ZEND_DLEXPORT void xdebug_init_oparray(zend_op_array *op_array)
+{
+ op_array->reserved[XG(reserved_offset)] = 0;
+}
+
#ifndef ZEND_EXT_API
#define ZEND_EXT_API ZEND_DLEXPORT
#endif
@@ -3107,7 +3110,7 @@
xdebug_statement_call, /* statement_handler_func_t */
NULL, /* fcall_begin_handler_func_t */
NULL, /* fcall_end_handler_func_t */
- NULL, /* op_array_ctor_func_t */
+ xdebug_init_oparray, /* op_array_ctor_func_t */
NULL, /* op_array_dtor_func_t */
STANDARD_ZEND_EXTENSION_PROPERTIES
};
Received on Wed Nov 21 2007 - 14:57:00 GMT
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST