summaryrefslogtreecommitdiff
path: root/ext/db/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/db/db.c')
-rw-r--r--ext/db/db.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/db/db.c b/ext/db/db.c
index aca8d7ea1f..406ef9d3a9 100644
--- a/ext/db/db.c
+++ b/ext/db/db.c
@@ -423,8 +423,9 @@ PHP_FUNCTION(dbmclose) {
}
/* }}} */
-int php_dbm_close(dbm_info *info) {
+int php_dbm_close(zend_rsrc_list_entry *rsrc) {
int ret = 0;
+ dbm_info *info = (dbm_info *)rsrc->ptr;
DBM_TYPE dbf;
int lockfd;
@@ -1121,7 +1122,7 @@ PHP_MINIT_FUNCTION(db)
}
#endif
- le_db = register_list_destructors(php_dbm_close,NULL);
+ le_db = register_list_destructors(php_dbm_close,NULL,"dbm");
return SUCCESS;
}