Changeset 1178 in svn for trunk/xcache/xc_sandbox.c


Ignore:
Timestamp:
2012-11-13T15:16:02Z (3 years ago)
Author:
Xuefer
Message:

improve compatibility with "the ionCube PHP Loader", Zend Optimizer. dont do early binding for cached opcode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache/xc_sandbox.c

    r992 r1178  
    230230
    231231    XG(sandbox) = (void *) sandbox;
     232    XG(initial_compile_file_called) = 0;
    232233    return sandbox;
    233234}
     
    291292#endif
    292293
     294    /* CG(compiler_options) applies only if initial_compile_file_called */
     295    if (XG(initial_compile_file_called)) {
    293296#ifdef ZEND_COMPILE_DELAYED_BINDING
    294     zend_do_delayed_early_binding(CG(active_op_array) TSRMLS_CC);
     297        zend_do_delayed_early_binding(CG(active_op_array) TSRMLS_CC);
    295298#else
    296     xc_undo_pass_two(CG(active_op_array) TSRMLS_CC);
    297     xc_foreach_early_binding_class(CG(active_op_array), xc_early_binding_cb, (void *) sandbox TSRMLS_CC);
    298     xc_redo_pass_two(CG(active_op_array) TSRMLS_CC);
    299 #endif
     299        xc_undo_pass_two(CG(active_op_array) TSRMLS_CC);
     300        xc_foreach_early_binding_class(CG(active_op_array), xc_early_binding_cb, (void *) sandbox TSRMLS_CC);
     301        xc_redo_pass_two(CG(active_op_array) TSRMLS_CC);
     302#endif
     303    }
    300304
    301305#ifdef XCACHE_ERROR_CACHING
Note: See TracChangeset for help on using the changeset viewer.