summaryrefslogtreecommitdiff
path: root/ext/fdf/fdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fdf/fdf.c')
-rw-r--r--ext/fdf/fdf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c
index f09b7433da..08a9d00563 100644
--- a/ext/fdf/fdf.c
+++ b/ext/fdf/fdf.c
@@ -209,8 +209,9 @@ PHP_FUNCTION(fdf_create)
FDFDoc fdf;
FDFErc err;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE)
- return;
+ if (ZEND_NUM_ARGS() != 0) {
+ WRONG_PARAM_COUNT;
+ }
err = FDFCreate(&fdf);