1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00

Fixed a few protos and ...

This commit is contained in:
Sterling Hughes
2000-03-25 04:05:13 +00:00
parent 1239651126
commit c0cede82f1

View File

@@ -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)
{