diff options
| author | Boris Lytochkin <lytboris@php.net> | 2011-07-17 18:14:38 +0000 |
|---|---|---|
| committer | Boris Lytochkin <lytboris@php.net> | 2011-07-17 18:14:38 +0000 |
| commit | 06c20347ae3cab7e07c493937b2be5bffd9ffebd (patch) | |
| tree | 4e700a382725dbb7c8a32c09d03f50b2881ea255 /ext/snmp/snmp.c | |
| parent | cf7724d5a335d267f1d11222576cee807e9b17e8 (diff) | |
| download | php-git-06c20347ae3cab7e07c493937b2be5bffd9ffebd.tar.gz | |
swap non_repeaters and max_repetitions in walk query, max_repetitions whould be used more frequently
Diffstat (limited to 'ext/snmp/snmp.c')
| -rw-r--r-- | ext/snmp/snmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index d889a0e3ad..9dc7a19b5f 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -345,8 +345,8 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_snmp_walk, 0, 0, 4) ZEND_ARG_INFO(0, object_id) ZEND_ARG_INFO(0, suffix_keys) - ZEND_ARG_INFO(0, non_repeaters) ZEND_ARG_INFO(0, max_repetitions) + ZEND_ARG_INFO(0, non_repeaters) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_snmp_set, 0, 0, 3) @@ -1355,7 +1355,7 @@ static void php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st, int version) RETURN_FALSE; } } else if (st & SNMP_CMD_WALK) { - if (zend_parse_parameters(argc TSRMLS_CC, "Z|bll", &oid, &suffix_keys, &(objid_query.non_repeaters), &(objid_query.max_repetitions)) == FAILURE) { + if (zend_parse_parameters(argc TSRMLS_CC, "Z|bll", &oid, &suffix_keys, &(objid_query.max_repetitions), &(objid_query.non_repeaters)) == FAILURE) { RETURN_FALSE; } if (suffix_keys) { @@ -1763,7 +1763,7 @@ PHP_METHOD(snmp, getnext) } /* }}} */ -/* {{{ proto mixed SNMP::walk(mixed object_id [, bool $suffix_as_key = FALSE [, int $non_repeaters [, int $max_repetitions ]]]) +/* {{{ proto mixed SNMP::walk(mixed object_id [, bool $suffix_as_key = FALSE [, int $max_repetitions [, int $non_repeaters]]) Return all objects including their respective object id withing the specified one as array of oid->value pairs */ PHP_METHOD(snmp, walk) { |
