Skip to content

Commit 8574268

Browse files
committed
Add missing zend_parse_parameters_none()
1 parent 61f8f68 commit 8574268

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/snmp/snmp.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,10 @@ PHP_METHOD(snmp, getErrno)
18691869

18701870
snmp_object = Z_SNMP_P(object);
18711871

1872+
if (zend_parse_parameters_none() == FAILURE) {
1873+
RETURN_FALSE;
1874+
}
1875+
18721876
RETVAL_LONG(snmp_object->snmp_errno);
18731877
return;
18741878
}
@@ -1883,6 +1887,10 @@ PHP_METHOD(snmp, getError)
18831887

18841888
snmp_object = Z_SNMP_P(object);
18851889

1890+
if (zend_parse_parameters_none() == FAILURE) {
1891+
RETURN_FALSE;
1892+
}
1893+
18861894
RETURN_STRING(snmp_object->snmp_errstr);
18871895
}
18881896
/* }}} */

0 commit comments

Comments
 (0)