Changeset 1060 for trunk


Ignore:
Timestamp:
2012-07-27T10:35:59+02:00 (2 years ago)
Author:
moo
Message:

coverager: make it work with cacher enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_coverager/xc_coverager.c

    r1059 r1060  
    576576/* }}} */ 
    577577 
    578 static int xc_optimizer_zend_startup(zend_extension *extension) /* {{{ */ 
    579 { 
     578static int xc_coverager_zend_startup(zend_extension *extension) /* {{{ */ 
     579{ 
     580    old_compile_file = zend_compile_file; 
     581    zend_compile_file = xc_compile_file_for_coverage; 
     582 
    580583    return SUCCESS; 
    581584} 
    582585/* }}} */ 
    583 static void xc_optimizer_zend_shutdown(zend_extension *extension) /* {{{ */ 
     586static void xc_coverager_zend_shutdown(zend_extension *extension) /* {{{ */ 
    584587{ 
    585588    /* empty */ 
     
    612615    XCACHE_URL, 
    613616    XCACHE_COPYRIGHT, 
    614     xc_optimizer_zend_startup, 
    615     xc_optimizer_zend_shutdown, 
     617    xc_coverager_zend_startup, 
     618    xc_coverager_zend_shutdown, 
    616619    NULL,           /* activate_func_t */ 
    617620    NULL,           /* deactivate_func_t */ 
     
    649652static PHP_MINIT_FUNCTION(xcache_coverager) /* {{{ */ 
    650653{ 
    651     old_compile_file = zend_compile_file; 
    652     zend_compile_file = xc_compile_file_for_coverage; 
    653  
    654654    REGISTER_INI_ENTRIES(); 
    655655 
Note: See TracChangeset for help on using the changeset viewer.