From 48d75026adf7fe6983afad34f3fcdc5667729dc8 Mon Sep 17 00:00:00 2001 From: Daniel Beulshausen Date: Tue, 14 Aug 2001 17:46:19 +0000 Subject: depreciated, but should build anyway... --- ext/db/db.c | 4 +++- ext/db/php_db.h | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'ext/db') diff --git a/ext/db/db.c b/ext/db/db.c index 6ea3bdb83a..21a1c3bdfe 100644 --- a/ext/db/db.c +++ b/ext/db/db.c @@ -252,11 +252,13 @@ PHP_MINFO_FUNCTION(db) Describes the dbm-compatible library being used */ PHP_FUNCTION(dblist) { + char *str; + if (ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } - char *str = php_get_info_db(); + str = php_get_info_db(); RETURN_STRING(str, 1); } /* }}} */ diff --git a/ext/db/php_db.h b/ext/db/php_db.h index 11faefacbe..4d6af79b84 100644 --- a/ext/db/php_db.h +++ b/ext/db/php_db.h @@ -51,16 +51,16 @@ typedef struct dbm_info { #define phpext_db_ptr NULL #endif -dbm_info *php_find_dbm(pval *id); +dbm_info *php_find_dbm(pval *id TSRMLS_DC); int php_dbm_close(zend_rsrc_list_entry *rsrc TSRMLS_DC); -dbm_info *php_dbm_open(char *filename, char *mode); +dbm_info *php_dbm_open(char *filename, char *mode TSRMLS_DC); int php_dbm_insert(dbm_info *info, char *key, char *value TSRMLS_DC); -char *php_dbm_fetch(dbm_info *info, char *key); -int php_dbm_replace(dbm_info *info, char *key, char *value); +char *php_dbm_fetch(dbm_info *info, char *key TSRMLS_DC); +int php_dbm_replace(dbm_info *info, char *key, char *value TSRMLS_DC); int php_dbm_exists(dbm_info *info, char *key); int php_dbm_delete(dbm_info *info, char *key); char *php_dbm_first_key(dbm_info *info); -char *php_dbm_nextkey(dbm_info *info, char *key); +char *php_dbm_nextkey(dbm_info *info, char *key TSRMLS_DC); /* db file functions */ PHP_MINIT_FUNCTION(db); -- cgit v1.2.1