Changeset 982 for trunk/xcache.c
- Timestamp:
- 2012-07-17T10:35:45+02:00 (10 months ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r979 r982 27 27 #include "ext/date/php_date.h" 28 28 #endif 29 #include "optimizer.h" 30 #include "coverager.h" 31 #include "disassembler.h" 32 #include "align.h" 33 #include "stack.h" 29 #include "submodules/xc_optimizer.h" 30 #include "submodules/xc_coverager.h" 31 #include "submodules/xc_disassembler.h" 34 32 #include "xcache_globals.h" 35 #include "processor.h" 36 #include "const_string.h" 37 #include "opcode_spec.h" 38 #include "utils.h" 33 #include "xc_processor.h" 34 #include "xc_const_string.h" 35 #include "xc_opcode_spec.h" 36 #include "xc_utils.h" 37 #include "util/xc_align.h" 38 #include "util/xc_stack.h" 39 #include "util/xc_vector.h" 40 #include "util/xc_trace.h" 39 41 40 42 #define VAR_ENTRY_EXPIRED(pentry) ((pentry)->ttl && XG(request_time) > (pentry)->ctime + (time_t) (pentry)->ttl) … … 72 74 static zend_bool xc_disable_on_crash = 0; 73 75 74 static xc_hash_t xc_php_hcache = { 0 };75 static xc_hash_t xc_php_hentry = { 0 };76 static xc_hash_t xc_var_hcache = { 0 };77 static xc_hash_t xc_var_hentry = { 0 };76 static xc_hash_t xc_php_hcache = { 0, 0, 0 }; 77 static xc_hash_t xc_php_hentry = { 0, 0, 0 }; 78 static xc_hash_t xc_var_hcache = { 0, 0, 0 }; 79 static xc_hash_t xc_var_hentry = { 0, 0, 0 }; 78 80 79 81 static zend_ulong xc_php_ttl = 0; … … 114 116 #endif 115 117 ZEND_DLEXPORT zend_extension zend_extension_entry; 116 ZEND_DECLARE_MODULE_GLOBALS(xcache) ;118 ZEND_DECLARE_MODULE_GLOBALS(xcache) 117 119 118 120 typedef enum { XC_TYPE_PHP, XC_TYPE_VAR } xc_entry_type_t; … … 3271 3273 } 3272 3274 /* }}} */ 3273 #ifdef HAVE_XCACHE_OPCODE_SPEC_DEF3274 3275 /* {{{ proto string xcache_get_opcode_spec(int opcode) */ 3275 3276 PHP_FUNCTION(xcache_get_opcode_spec) … … 3295 3296 } 3296 3297 /* }}} */ 3297 #endif3298 3298 /* {{{ proto mixed xcache_get_special_value(zval value) 3299 3299 XCache internal use only: For decompiler to get static value with type fixed */ … … 3398 3398 PHP_FE(xcache_get_data_type, NULL) 3399 3399 PHP_FE(xcache_get_opcode, NULL) 3400 #ifdef HAVE_XCACHE_OPCODE_SPEC_DEF3401 3400 PHP_FE(xcache_get_opcode_spec, NULL) 3402 #endif3403 3401 PHP_FE(xcache_is_autoglobal, NULL) 3404 3402 PHP_FE(xcache_inc, NULL) … … 3520 3518 typedef void (*xc_sighandler_t)(int); 3521 3519 #define FOREACH_SIG(sig) static xc_sighandler_t old_##sig##_handler = NULL 3522 #include " foreachcoresig.h"3520 #include "util/xc_foreachcoresig.h" 3523 3521 #undef FOREACH_SIG 3524 3522 /* }}} */ … … 3534 3532 } \ 3535 3533 } while (0) 3536 #include " foreachcoresig.h"3534 #include "util/xc_foreachcoresig.h" 3537 3535 #undef FOREACH_SIG 3538 3536 } … … 3542 3540 #define FOREACH_SIG(sig) \ 3543 3541 old_##sig##_handler = signal(sig, xcache_signal_handler) 3544 #include " foreachcoresig.h"3542 #include "util/xc_foreachcoresig.h" 3545 3543 #undef FOREACH_SIG 3546 3544 }
Note: See TracChangeset
for help on using the changeset viewer.

