cvs: pecl /memcache memcache.c
| From: | Antony Dovgal | Date: | Tue, 05 Feb 2008 13:31:56 +0000 |
| Subject: | cvs: pecl /memcache memcache.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-9669@lists.php.net to get a copy of this message | ||
tony2001 Tue Feb 5 13:31:56 2008 UTC
Modified files:
/pecl/memcache memcache.c
Log:
add extension version both to the module struct and phpinfo() output
http://cvs.php.net/viewvc.cgi/pecl/memcache/memcache.c?r1=1.96&r2=1.97&diff_format=u
Index: pecl/memcache/memcache.c
diff -u pecl/memcache/memcache.c:1.96 pecl/memcache/memcache.c:1.97
--- pecl/memcache/memcache.c:1.96 Fri Jan 11 21:34:13 2008
+++ pecl/memcache/memcache.c Tue Feb 5 13:31:56 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: memcache.c,v 1.96 2008/01/11 21:34:13 mikl Exp $ */
+/* $Id: memcache.c,v 1.97 2008/02/05 13:31:56 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -46,6 +46,8 @@
#define OnUpdateLong OnUpdateInt
#endif
+#define PHP_MEMCACHE_VERSION "2.2.3-dev"
+
/* True global resources - no need for thread safety here */
static int le_memcache_pool, le_pmemcache;
static zend_class_entry *memcache_class_entry_ptr;
@@ -115,7 +117,7 @@
NULL,
PHP_MINFO(memcache),
#if ZEND_MODULE_API_NO >= 20010901
- NO_VERSION_YET, /* Replace with version number for your extension */
+ PHP_MEMCACHE_VERSION,
#endif
STANDARD_MODULE_PROPERTIES
};
@@ -301,7 +303,8 @@
php_info_print_table_start();
php_info_print_table_header(2, "memcache support", "enabled");
php_info_print_table_row(2, "Active persistent connections", buf);
- php_info_print_table_row(2, "Revision", "$Revision: 1.96 $");
+ php_info_print_table_row(2, "Version", PHP_MEMCACHE_VERSION);
+ php_info_print_table_row(2, "Revision", "$Revision: 1.97 $");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
@@ -408,6 +411,7 @@
mmc->error = NULL;
}
}
+/* }}} */
static void mmc_server_free(mmc_t *mmc TSRMLS_DC) /* {{{ */
{