diff options
author | Daniel Beulshausen <dbeu@php.net> | 2001-08-14 17:46:19 +0000 |
---|---|---|
committer | Daniel Beulshausen <dbeu@php.net> | 2001-08-14 17:46:19 +0000 |
commit | 48d75026adf7fe6983afad34f3fcdc5667729dc8 (patch) | |
tree | b925514cbfb6873bfd1d3c6808b3cf066a48895d /ext/db | |
parent | 4580df108079b8213a1788dd911a4636478dc098 (diff) | |
download | php-git-48d75026adf7fe6983afad34f3fcdc5667729dc8.tar.gz |
depreciated, but should build anyway...
Diffstat (limited to 'ext/db')
-rw-r--r-- | ext/db/db.c | 4 | ||||
-rw-r--r-- | ext/db/php_db.h | 10 |
2 files changed, 8 insertions, 6 deletions
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); |