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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/db/db.c b/ext/db/db.c
index 4ef741738f..cf0712da71 100644
--- a/ext/db/db.c
+++ b/ext/db/db.c
@@ -252,6 +252,9 @@ PHP_MINFO_FUNCTION(db)
Describes the dbm-compatible library being used */
PHP_FUNCTION(dblist)
{
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE)
+ return;
+
char *str = php_get_info_db();
RETURN_STRING(str, 1);
}