Ticket #307: xcache-zend-extension-manager.diff

File xcache-zend-extension-manager.diff, 1.1 KB (added by moo, 2 years ago)
  • mod_cacher/xc_cacher.c

     
    37443744    REGISTER_INI_ENTRIES();
    37453745
    37463746    xc_sandbox_module_init(module_number TSRMLS_CC);
    3747     return xcache_zend_extension_add(&xc_cacher_zend_extension_entry, 0);
     3747    return xcache_zend_extension_add(&xc_cacher_zend_extension_entry, 1);
    37483748}
    37493749/* }}} */
    37503750static PHP_MSHUTDOWN_FUNCTION(xcache_cacher) /* {{{ */
  • xcache.c

     
    764764    xc_init_constant(module_number TSRMLS_CC);
    765765    xc_shm_init_modules();
    766766
     767#ifdef HAVE_XCACHE_CACHER
     768    xc_cacher_startup_module();
     769#endif
     770
    767771    /* must be the first */
    768772    xcache_zend_extension_add(&xc_zend_extension_entry, 1);
    769773#ifdef HAVE_XCACHE_OPTIMIZER
    770774    xc_optimizer_startup_module();
    771775#endif
    772 #ifdef HAVE_XCACHE_CACHER
    773     xc_cacher_startup_module();
    774 #endif
    775776#ifdef HAVE_XCACHE_COVERAGER
    776777    xc_coverager_startup_module();
    777778#endif