cvs: /php4/ext/snmp snmp.c

From: Date: Sat, 25 Mar 2000 04:05:43 +0000
Subject: cvs: /php4/ext/snmp snmp.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-12585@lists.php.net to get a copy of this message
sterling Fri Mar 24 20:05:43 2000 EDT Modified files: /php4/ext/snmp snmp.c Log: Fixed a few protos and ... Index: php4/ext/snmp/snmp.c diff -u php4/ext/snmp/snmp.c:1.22 php4/ext/snmp/snmp.c:1.23 --- php4/ext/snmp/snmp.c:1.22 Sun Mar 19 04:38:53 2000 +++ php4/ext/snmp/snmp.c Fri Mar 24 20:05:13 2000 @@ -17,7 +17,7 @@ | Steven Lawrance <slawrance@technologist.com> | +----------------------------------------------------------------------+ */ -/* $Id: snmp.c,v 1.22 2000/03/19 12:38:53 sas Exp $ */ +/* $Id: snmp.c,v 1.23 2000/03/25 04:05:13 sterling Exp $ */ #include "php.h" #if defined(COMPILE_DL) @@ -150,7 +150,9 @@ 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 @@ } /* }}} */ -/* {{{ 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 @@ } /* }}} */ -/* {{{ 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) {

« previous php.version4 (#12585) next »