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 cf0712da71..6ea3bdb83a 100644
--- a/ext/db/db.c
+++ b/ext/db/db.c
@@ -252,8 +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;
+ if (ZEND_NUM_ARGS() != 0) {
+ WRONG_PARAM_COUNT;
+ }
char *str = php_get_info_db();
RETURN_STRING(str, 1);