From: Sterling Hughes Date: Sat, 25 Mar 2000 04:05:13 +0000 (+0000) Subject: Fixed a few protos and ... X-Git-Tag: PHP-4.0-RC1~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0cede82f1079ac688c6fda0d479686b801c6da1;p=php Fixed a few protos and ... --- diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 90649a4c39..2c3bf8fd5a 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -150,7 +150,9 @@ void php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st) { case 9: RETURN_LONG(snmp_get_quick_print()?1:0); case 10: - if(myargc != 1 || getParameters(ht, myargc, &a1)) WRONG_PARAM_COUNT; + if (myargc != 1 || getParameters(ht, myargc, &a1) == FAILURE) { + WRONG_PARAM_COUNT; + } convert_to_long(a1); snmp_set_quick_print((int) a1->value.lval); RETURN_TRUE; @@ -327,14 +329,14 @@ PHP_FUNCTION(snmpget) { } /* }}} */ -/* {{{ proto string snmpwalk(string host, string community, string object_id [, int timeout [, int retries]]) +/* {{{ proto array snmpwalk(string host, string community, string object_id [, int timeout [, int retries]]) Return all objects under the specified object id */ PHP_FUNCTION(snmpwalk) { return php_snmp(INTERNAL_FUNCTION_PARAM_PASSTHRU,2); } /* }}} */ -/* {{{ proto string snmprealwalk(string host, string community, string object_id [, int timeout [, int retries]]) +/* {{{ proto array snmprealwalk(string host, string community, string object_id [, int timeout [, int retries]]) Return all objects including their respective object id withing the specified one */ PHP_FUNCTION(snmprealwalk) { @@ -342,7 +344,7 @@ PHP_FUNCTION(snmprealwalk) } /* }}} */ -/* {{{ proto string snmprealoid(string host, string community, string object_id [, int timeout [, int retries]]) +/* {{{ proto array snmpwalkoid(string host, string community, string object_id [, int timeout [, int retries]]) Return all objects including their respective object id withing the specified one */ PHP_FUNCTION(snmpwalkoid) {