Changeset 537 for trunk/xcache.c
- Timestamp:
- 2008-03-02T06:43:01+01:00 (5 years ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r533 r537 87 87 88 88 static zend_bool xc_initized = 0; 89 static time_t xc_init_time = 0; 90 static long unsigned xc_init_instance_id = 0; 91 #ifdef ZTS 92 static long unsigned xc_init_instance_subid = 0; 93 #endif 89 94 static zend_compile_file_t *origin_compile_file = NULL; 90 95 static zend_compile_file_t *old_compile_file = NULL; … … 2769 2774 php_info_print_table_row(2, "Modules Built", XCACHE_MODULES); 2770 2775 php_info_print_table_row(2, "Readonly Protection", xc_readonly_protection ? "enabled" : "N/A"); 2776 ptr = php_format_date("Y-m-d H:i:s", sizeof("Y-m-d H:i:s") - 1, xc_init_time, 1 TSRMLS_CC); 2777 php_info_print_table_row(2, "Cache Init Time", ptr); 2778 efree(ptr); 2779 2780 #ifdef ZTS 2781 snprintf(buf, sizeof(buf), "%lu.%lu", xc_init_instance_id, xc_init_instance_subid); 2782 #else 2783 snprintf(buf, sizeof(buf), "%lu", xc_init_instance_id); 2784 #endif 2785 php_info_print_table_row(2, "Cache Instance Id", buf); 2771 2786 2772 2787 if (xc_php_size) { … … 3003 3018 } 3004 3019 xc_initized = 1; 3020 xc_init_time = time(NULL); 3021 xc_init_instance_id = getpid(); 3022 #ifdef ZTS 3023 xc_init_instance_subid = tsrm_thread_id(); 3024 #endif 3005 3025 } 3006 3026
Note: See TracChangeset
for help on using the changeset viewer.

