[xdebug-dev] xdebug xdebug/xdebug.c - Use the op_array ctor handler.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Wed, 21 Nov 2007 14:42:16 +0100

Date: Wed Nov 21 14:42:15 CET 2007
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Use the op_array ctor handler.

Modified files:
           xdebug/xdebug.c (version: 1.412)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.411
retrieving revision 1.412
diff -u -r1.411 -r1.412
--- xdebug/xdebug.c:1.411 Sat Oct 27 16:25:28 2007 GMT
+++ xdebug/xdebug.c Wed Nov 21 12:42:15 2007 GMT
@@ -2421,8 +2421,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);
                 }
@@ -3210,6 +3208,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
@@ -3230,7 +3233,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