cvs: pecl /apc php_apc.c
| From: | Rasmus Lerdorf | Date: | Thu, 28 Oct 2004 17:56:02 +0000 |
| Subject: | cvs: pecl /apc php_apc.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1989@lists.php.net to get a copy of this message | ||
rasmus Thu Oct 28 13:56:02 2004 EDT
Modified files:
/pecl/apc php_apc.c
Log:
Fix warning and add missing TSRM bits
http://cvs.php.net/diff.php/pecl/apc/php_apc.c?r1=3.39&r2=3.40&ty=u
Index: pecl/apc/php_apc.c
diff -u pecl/apc/php_apc.c:3.39 pecl/apc/php_apc.c:3.40
--- pecl/apc/php_apc.c:3.39 Thu Oct 28 13:50:15 2004
+++ pecl/apc/php_apc.c Thu Oct 28 13:56:01 2004
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_apc.c,v 3.39 2004/10/28 17:50:15 rasmus Exp $ */
+/* $Id: php_apc.c,v 3.40 2004/10/28 17:56:01 rasmus Exp $ */
#ifdef PHP_WIN32
/* XXX lame hack, for some reason, the ini entries are all messed
@@ -125,7 +125,7 @@
#else
php_info_print_table_row(2, "MMAP Support", "Disabled");
#endif
- php_info_print_table_row(2, "Revision", "$Revision: 3.39 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 3.40 $");
php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__);
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
@@ -184,7 +184,7 @@
char *cache_type;
int ct_len;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &cache_type, &ct_len) ==
FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &cache_type, &ct_len)
== FAILURE) {
return;
}
@@ -274,7 +274,7 @@
char *cache_type;
int ct_len;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &cache_type, &ct_len) ==
FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &cache_type, &ct_len)
== FAILURE) {
return;
}
@@ -338,7 +338,7 @@
}
/* }}} */
-static int _apc_store(const char *strkey, const zval *val, const unsigned int ttl TSRMLS_DC) {
+static int _apc_store(char *strkey, const zval *val, const unsigned int ttl TSRMLS_DC) {
apc_cache_entry_t *entry;
apc_cache_key_t key;
time_t t;
@@ -377,7 +377,7 @@
int strkey_len;
long ttl = 0L;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "sz|l", &strkey, &strkey_len,
&val, &ttl) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz|l", &strkey,
&strkey_len, &val, &ttl) == FAILURE) {
return;
}
@@ -396,7 +396,7 @@
apc_cache_entry_t* entry;
time_t t;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &strkey, &strkey_len) ==
FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &strkey, &strkey_len)
== FAILURE) {
return;
}
@@ -431,7 +431,7 @@
int strkey_len;
time_t t;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &strkey, &strkey_len) ==
FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &strkey, &strkey_len)
== FAILURE) {
return;
}
@@ -514,7 +514,7 @@
time_t t;
zend_bool case_sensitive = 1;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|b", &strkey, &strkey_len,
&case_sensitive) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &strkey,
&strkey_len, &case_sensitive) == FAILURE) {
return;
}