Ignore:
Timestamp:
2012-08-03T05:52:01+02:00 (3 years ago)
Author:
Xuefer
Message:

typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.