All pastes #748874 Raw Edit

Unnamed

public text v1 · immutable
#748874 ·published 2007-10-25 07:38 UTC
rendered paste body
Index: xdebug.c
===================================================================
RCS file: /repository/xdebug/xdebug.c,v
retrieving revision 1.400.2.4
diff -u -r1.400.2.4 xdebug.c
--- xdebug.c    20 Oct 2007 16:37:49 -0000      1.400.2.4
+++ xdebug.c    25 Oct 2007 07:37:34 -0000
@@ -2339,10 +2339,13 @@
        zend_op_array *op_array;
        
        op_array = old_compile_file(file_handle, type TSRMLS_CC);
-       op_array->reserved[XG(reserved_offset)] = 0;
 
-       if (XG(do_code_coverage) && XG(code_coverage_unused)) {
-               xdebug_prefill_code_coverage(op_array 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);
+               }
        }
        return op_array;
 }