Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 548)
+++ /trunk/xcache.c	(revision 551)
@@ -20,5 +20,7 @@
 #include "ext/standard/php_math.h"
 #include "ext/standard/php_string.h"
+#ifdef ZEND_ENGINE_2_1
 #include "ext/date/php_date.h"
+#endif
 #include "zend_extensions.h"
 #include "SAPI.h"
@@ -879,5 +881,10 @@
 		xc_hash_value_t h;
 		UNISW(size_t, int) basename_len;
+#ifdef ZEND_ENGINE_2
 		php_basename(xce->name.str.val, xce->name.str.len, "", 0, &basename, &basename_len TSRMLS_CC);
+#else
+		basename = php_basename(xce->name.str.val, xce->name.str.len, "", 0);
+		basename_len = strlen(basename);
+#endif
 		h = HASH_STR_L(basename, basename_len);
 		efree(basename);
@@ -2831,7 +2838,12 @@
 	php_info_print_table_row(2, "Modules Built", XCACHE_MODULES);
 	php_info_print_table_row(2, "Readonly Protection", xc_readonly_protection ? "enabled" : "N/A");
+#ifdef ZEND_ENGINE_2_1
 	ptr = php_format_date("Y-m-d H:i:s", sizeof("Y-m-d H:i:s") - 1, xc_init_time, 1 TSRMLS_CC);
 	php_info_print_table_row(2, "Cache Init Time", ptr);
 	efree(ptr);
+#else
+	snprintf(buf, sizeof(buf), "%lu", (long unsigned) xc_init_time);
+	php_info_print_table_row(2, "Cache Init Time", buf);
+#endif
 
 #ifdef ZTS
