diff options
Diffstat (limited to 'ext/hyperwave/hw.c')
-rw-r--r-- | ext/hyperwave/hw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/hyperwave/hw.c b/ext/hyperwave/hw.c index a00e1c7fa3..077a7ae263 100644 --- a/ext/hyperwave/hw.c +++ b/ext/hyperwave/hw.c @@ -1331,8 +1331,9 @@ PHP_FUNCTION(hw_errormsg) Returns object id of root collection */ PHP_FUNCTION(hw_root) { - if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) - return; + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } return_value->value.lval = 0; return_value->type = IS_LONG; |