Changeset 163 for trunk/xcache.c
- Timestamp:
- 09/13/2006 02:11:36 PM (7 years ago)
- Files:
-
- 1 modified
-
trunk/xcache.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r154 r163 2123 2123 char buf[100]; 2124 2124 char *ptr; 2125 int left, len; 2126 xc_shm_scheme_t *scheme; 2125 2127 2126 2128 php_info_print_table_start(); … … 2132 2134 if (xc_php_size) { 2133 2135 ptr = _php_math_number_format(xc_php_size, 0, '.', ','); 2134 s printf(buf, "enabled, %s bytes, %d split(s), with %d slots each", ptr, xc_php_hcache.size, xc_php_hentry.size);2136 snprintf(buf, sizeof(buf), "enabled, %s bytes, %d split(s), with %d slots each", ptr, xc_php_hcache.size, xc_php_hentry.size); 2135 2137 php_info_print_table_row(2, "Opcode Cache", buf); 2136 2138 efree(ptr); … … 2141 2143 if (xc_var_size) { 2142 2144 ptr = _php_math_number_format(xc_var_size, 0, '.', ','); 2143 s printf(buf, "enabled, %s bytes, %d split(s), with %d slots each", ptr, xc_var_hcache.size, xc_var_hentry.size);2145 snprintf(buf, sizeof(buf), "enabled, %s bytes, %d split(s), with %d slots each", ptr, xc_var_hcache.size, xc_var_hentry.size); 2144 2146 php_info_print_table_row(2, "Variable Cache", buf); 2145 2147 efree(ptr); … … 2148 2150 php_info_print_table_row(2, "Variable Cache", "disabled"); 2149 2151 } 2152 2153 left = sizeof(buf); 2154 ptr = buf; 2155 buf[0] = '\0'; 2156 for (scheme = xc_shm_scheme_first(); scheme; scheme = xc_shm_scheme_next(scheme)) { 2157 len = snprintf(ptr, left, ptr == buf ? "%s" : ", %s", xc_shm_scheme_name(scheme)); 2158 left -= len; 2159 ptr += len; 2160 } 2161 php_info_print_table_row(2, "Shared Memory Schemes", buf); 2162 2150 2163 #ifdef HAVE_XCACHE_COVERAGER 2151 2164 php_info_print_table_row(2, "Coverage Dumper", XG(coveragedumper) && xc_coveragedump_dir && xc_coveragedump_dir[0] ? "enabled" : "disabled");

