summaryrefslogtreecommitdiff
path: root/ext/snmp/snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/snmp/snmp.c')
-rw-r--r--ext/snmp/snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 4864ee7b25..0a880ca1e0 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -693,8 +693,8 @@ PHP_FUNCTION(snmprealwalk)
Return the current status of quick_print */
PHP_FUNCTION(snmp_get_quick_print)
{
- if (ZEND_NUM_ARGS() != 0) {
- WRONG_PARAM_COUNT;
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
#ifdef HAVE_NET_SNMP