Changeset 551
- Timestamp:
- 04/18/2008 02:10:35 AM (4 months ago)
- Files:
-
- 1 modified
-
trunk/xcache.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r548 r551 20 20 #include "ext/standard/php_math.h" 21 21 #include "ext/standard/php_string.h" 22 #ifdef ZEND_ENGINE_2_1 22 23 #include "ext/date/php_date.h" 24 #endif 23 25 #include "zend_extensions.h" 24 26 #include "SAPI.h" … … 879 881 xc_hash_value_t h; 880 882 UNISW(size_t, int) basename_len; 883 #ifdef ZEND_ENGINE_2 881 884 php_basename(xce->name.str.val, xce->name.str.len, "", 0, &basename, &basename_len TSRMLS_CC); 885 #else 886 basename = php_basename(xce->name.str.val, xce->name.str.len, "", 0); 887 basename_len = strlen(basename); 888 #endif 882 889 h = HASH_STR_L(basename, basename_len); 883 890 efree(basename); … … 2831 2838 php_info_print_table_row(2, "Modules Built", XCACHE_MODULES); 2832 2839 php_info_print_table_row(2, "Readonly Protection", xc_readonly_protection ? "enabled" : "N/A"); 2840 #ifdef ZEND_ENGINE_2_1 2833 2841 ptr = php_format_date("Y-m-d H:i:s", sizeof("Y-m-d H:i:s") - 1, xc_init_time, 1 TSRMLS_CC); 2834 2842 php_info_print_table_row(2, "Cache Init Time", ptr); 2835 2843 efree(ptr); 2844 #else 2845 snprintf(buf, sizeof(buf), "%lu", (long unsigned) xc_init_time); 2846 php_info_print_table_row(2, "Cache Init Time", buf); 2847 #endif 2836 2848 2837 2849 #ifdef ZTS

