Changeset 1118
- Timestamp:
- 2012-08-03T05:52:01+02:00 (11 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
mod_cacher/xc_cacher.c (modified) (2 diffs)
-
mod_coverager/xc_coverager.c (modified) (6 diffs)
-
xcache_globals.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mod_cacher/xc_cacher.c
r1113 r1118 3163 3163 #endif 3164 3164 PHP_INI_BEGIN() 3165 PHP_INI_ENTRY1 ("xcache.shm_scheme", "mmap", PHP_INI_SYSTEM, xcache_OnUpdateString, &xc_shm_scheme) 3165 3166 PHP_INI_ENTRY1 ("xcache.mmap_path", DEFAULT_PATH, PHP_INI_SYSTEM, xcache_OnUpdateString, &xc_mmap_path) 3166 3167 PHP_INI_ENTRY1_EX ("xcache.readonly_protection", "0", PHP_INI_SYSTEM, xcache_OnUpdateBool, &xc_readonly_protection, zend_ini_boolean_displayer_cb) … … 3170 3171 PHP_INI_ENTRY1 ("xcache.count", "1", PHP_INI_SYSTEM, xcache_OnUpdateDummy, NULL) 3171 3172 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)3173 3173 PHP_INI_ENTRY1 ("xcache.ttl", "0", PHP_INI_SYSTEM, xcache_OnUpdateULong, &xc_php_ttl) 3174 3174 PHP_INI_ENTRY1 ("xcache.gc_interval", "0", PHP_INI_SYSTEM, xcache_OnUpdateULong, &xc_php_gc_interval) -
trunk/mod_coverager/xc_coverager.c
r1117 r1118 243 243 /* }}} */ 244 244 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;245 static void xc_coverager_start(TSRMLS_D) /* {{{ */ 246 { 247 XG(coverager_started) = 1; 248 } 249 /* }}} */ 250 static void xc_coverager_stop(TSRMLS_D) /* {{{ */ 251 { 252 XG(coverager_started) = 0; 253 253 } 254 254 /* }}} */ … … 258 258 if (XG(coverager)) { 259 259 if (XG(coverager_autostart)) { 260 xc_coverager_ enable(TSRMLS_C);260 xc_coverager_start(TSRMLS_C); 261 261 } 262 262 #ifdef ZEND_COMPILE_EXTENDED_INFO … … 267 267 } 268 268 else { 269 XG(coverager_ enabled) = 0;269 XG(coverager_started) = 0; 270 270 } 271 271 return SUCCESS; … … 471 471 TSRMLS_FETCH(); 472 472 473 if (XG(coverages) && XG(coverager_ enabled)) {473 if (XG(coverages) && XG(coverager_started)) { 474 474 int size = xc_coverager_get_op_array_size_no_tail(op_array); 475 475 int oplineno = (*EG(opline_ptr)) - op_array->opcodes; … … 528 528 529 529 if (XG(coverager)) { 530 xc_coverager_ enable(TSRMLS_C);530 xc_coverager_start(TSRMLS_C); 531 531 } 532 532 else { … … 546 546 } 547 547 548 xc_coverager_ disable(TSRMLS_C);548 xc_coverager_stop(TSRMLS_C); 549 549 if (clean) { 550 550 xc_coverager_clean(TSRMLS_C); -
trunk/xcache_globals.h
r1117 r1118 12 12 zend_bool coverager; 13 13 zend_bool coverager_autostart; 14 zend_bool coverager_ enabled;14 zend_bool coverager_started; 15 15 HashTable *coverages; /* coverages[file][line] = times */ 16 16 #endif
Note: See TracChangeset
for help on using the changeset viewer.

