Changeset 1118 in svn


Ignore:
Timestamp:
2012-08-03T03:52:01Z (3 years ago)
Author:
Xuefer
Message:

typo

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_cacher/xc_cacher.c

    r1113 r1118  
    31633163#endif
    31643164PHP_INI_BEGIN()
     3165    PHP_INI_ENTRY1     ("xcache.shm_scheme",          "mmap", PHP_INI_SYSTEM, xcache_OnUpdateString,   &xc_shm_scheme)
    31653166    PHP_INI_ENTRY1     ("xcache.mmap_path",     DEFAULT_PATH, PHP_INI_SYSTEM, xcache_OnUpdateString,   &xc_mmap_path)
    31663167    PHP_INI_ENTRY1_EX  ("xcache.readonly_protection",    "0", PHP_INI_SYSTEM, xcache_OnUpdateBool,     &xc_readonly_protection, zend_ini_boolean_displayer_cb)
     
    31703171    PHP_INI_ENTRY1     ("xcache.count",                  "1", PHP_INI_SYSTEM, xcache_OnUpdateDummy,    NULL)
    31713172    PHP_INI_ENTRY1     ("xcache.slots",                 "8K", PHP_INI_SYSTEM, xcache_OnUpdateDummy,    NULL)
    3172     PHP_INI_ENTRY1     ("xcache.shm_scheme",          "mmap", PHP_INI_SYSTEM, xcache_OnUpdateString,   &xc_shm_scheme)
    31733173    PHP_INI_ENTRY1     ("xcache.ttl",                    "0", PHP_INI_SYSTEM, xcache_OnUpdateULong,    &xc_php_ttl)
    31743174    PHP_INI_ENTRY1     ("xcache.gc_interval",            "0", PHP_INI_SYSTEM, xcache_OnUpdateULong,    &xc_php_gc_interval)
  • trunk/mod_coverager/xc_coverager.c

    r1117 r1118  
    243243/* }}} */
    244244
    245 static void xc_coverager_enable(TSRMLS_D) /* {{{ */
    246 {
    247     XG(coverager_enabled) = 1;
    248 }
    249 /* }}} */
    250 static void xc_coverager_disable(TSRMLS_D) /* {{{ */
    251 {
    252     XG(coverager_enabled) = 0;
     245static void xc_coverager_start(TSRMLS_D) /* {{{ */
     246{
     247    XG(coverager_started) = 1;
     248}
     249/* }}} */
     250static void xc_coverager_stop(TSRMLS_D) /* {{{ */
     251{
     252    XG(coverager_started) = 0;
    253253}
    254254/* }}} */
     
    258258    if (XG(coverager)) {
    259259        if (XG(coverager_autostart)) {
    260             xc_coverager_enable(TSRMLS_C);
     260            xc_coverager_start(TSRMLS_C);
    261261        }
    262262#ifdef ZEND_COMPILE_EXTENDED_INFO
     
    267267    }
    268268    else {
    269         XG(coverager_enabled) = 0;
     269        XG(coverager_started) = 0;
    270270    }
    271271    return SUCCESS;
     
    471471    TSRMLS_FETCH();
    472472
    473     if (XG(coverages) && XG(coverager_enabled)) {
     473    if (XG(coverages) && XG(coverager_started)) {
    474474        int size = xc_coverager_get_op_array_size_no_tail(op_array);
    475475        int oplineno = (*EG(opline_ptr)) - op_array->opcodes;
     
    528528
    529529    if (XG(coverager)) {
    530         xc_coverager_enable(TSRMLS_C);
     530        xc_coverager_start(TSRMLS_C);
    531531    }
    532532    else {
     
    546546    }
    547547
    548     xc_coverager_disable(TSRMLS_C);
     548    xc_coverager_stop(TSRMLS_C);
    549549    if (clean) {
    550550        xc_coverager_clean(TSRMLS_C);
  • trunk/xcache_globals.h

    r1117 r1118  
    1212    zend_bool coverager;
    1313    zend_bool coverager_autostart;
    14     zend_bool coverager_enabled;
     14    zend_bool coverager_started;
    1515    HashTable *coverages;  /* coverages[file][line] = times */
    1616#endif
Note: See TracChangeset for help on using the changeset viewer.