Skip to content

Commit 5836e3e

Browse files
committed
Update ext/snmp parameter names
Closes GH-6298.
1 parent ad7e231 commit 5836e3e

File tree

3 files changed

+88
-66
lines changed

3 files changed

+88
-66
lines changed

ext/snmp/snmp.stub.php

Lines changed: 50 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,70 @@
22

33
/** @generate-function-entries */
44

5-
function snmpget(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
5+
function snmpget(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
66

7-
function snmpgetnext(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
7+
function snmpgetnext(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
88

9-
function snmpwalk(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
9+
function snmpwalk(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
1010

11-
function snmprealwalk(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
11+
function snmprealwalk(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
1212

1313
/** @alias snmprealwalk */
14-
function snmpwalkoid(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
14+
function snmpwalkoid(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
1515

16-
function snmpset(string $host, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {}
16+
function snmpset(string $hostname, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {}
1717

1818
function snmp_get_quick_print(): bool {}
1919

20-
function snmp_set_quick_print(bool $quick_print): bool {}
20+
function snmp_set_quick_print(bool $enable): bool {}
2121

22-
function snmp_set_enum_print(bool $enum_print): bool {}
22+
function snmp_set_enum_print(bool $enable): bool {}
2323

24-
function snmp_set_oid_output_format(int $oid_format): bool {}
24+
function snmp_set_oid_output_format(int $format): bool {}
2525

2626
/** @alias snmp_set_oid_output_format */
27-
function snmp_set_oid_numeric_print(int $oid_format): bool {}
27+
function snmp_set_oid_numeric_print(int $format): bool {}
2828

29-
function snmp2_get(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
29+
function snmp2_get(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
3030

31-
function snmp2_getnext(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
31+
function snmp2_getnext(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
3232

33-
function snmp2_walk(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
33+
function snmp2_walk(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
3434

35-
function snmp2_real_walk(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
35+
function snmp2_real_walk(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
3636

37-
function snmp2_set(string $host, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {}
37+
function snmp2_set(string $hostname, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {}
3838

39-
function snmp3_get(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
39+
function snmp3_get(
40+
string $hostname, string $security_name, string $security_level,
41+
string $auth_protocol, string $auth_passphrase,
42+
string $privacy_protocol, string $privacy_passphrase,
43+
array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
4044

41-
function snmp3_getnext(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
45+
function snmp3_getnext(
46+
string $hostname, string $security_name, string $security_level,
47+
string $auth_protocol, string $auth_passphrase,
48+
string $privacy_protocol, string $privacy_passphrase,
49+
array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {}
4250

43-
function snmp3_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
51+
function snmp3_walk(
52+
string $hostname, string $security_name, string $security_level,
53+
string $auth_protocol, string $auth_passphrase,
54+
string $privacy_protocol, string $privacy_passphrase,
55+
array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
4456

45-
function snmp3_real_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
57+
function snmp3_real_walk(
58+
string $hostname, string $security_name, string $security_level,
59+
string $auth_protocol, string $auth_passphrase,
60+
string $privacy_protocol, string $privacy_passphrase,
61+
array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {}
4662

47-
function snmp3_set(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {}
63+
function snmp3_set(
64+
string $hostname, string $security_name, string $security_level,
65+
string $auth_protocol, string $auth_passphrase,
66+
string $privacy_protocol, string $privacy_passphrase,
67+
array|string $object_id, array|string $type, array|string $value,
68+
int $timeout = -1, int $retries = -1): array|bool {}
4869

4970
function snmp_set_valueretrieval(int $method): bool {}
5071

@@ -54,25 +75,28 @@ function snmp_read_mib(string $filename): bool {}
5475

5576
class SNMP
5677
{
57-
public function __construct(int $version, string $host, string $community, int $timeout = -1, int $retries = -1) {}
78+
public function __construct(int $version, string $hostname, string $community, int $timeout = -1, int $retries = -1) {}
5879

5980
/** @return bool */
6081
public function close() {}
6182

6283
/** @return bool */
63-
public function setSecurity(string $sec_level, string $auth_protocol = "", string $auth_passphrase = "", string $priv_protocol = "", string $priv_passphrase = "", string $contextName = "", string $contextEngineID = "") {}
84+
public function setSecurity(
85+
string $securityLevel, string $authProtocol = "", string $authPassphrase = "",
86+
string $privacyProtocol = "", string $privacyPassphrase = "",
87+
string $contextName = "", string $contextEngineId = "") {}
6488

6589
/** @return array|bool */
66-
public function get(array|string $object_id, bool $use_orignames = false) {}
90+
public function get(array|string $objectId, bool $preserveKeys = false) {}
6791

6892
/** @return array|bool */
69-
public function getnext(array|string $object_id) {}
93+
public function getnext(array|string $objectId) {}
7094

7195
/** @return array|bool */
72-
public function walk(array|string $object_id, bool $suffix_keys = false, int $max_repetitions = -1, int $non_repeaters = -1) {}
96+
public function walk(array|string $objectId, bool $suffixAsKey = false, int $maxRepetitions = -1, int $nonRepeaters = -1) {}
7397

7498
/** @return array|bool */
75-
public function set(array|string $object_id, array|string $type, array|string $value) {}
99+
public function set(array|string $objectId, array|string $type, array|string $value) {}
76100

77101
/** @return int */
78102
public function getErrno() {}

ext/snmp/snmp_arginfo.h

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4b1adaf7afe143328f1b05c7039fb3d974b29545 */
2+
* Stub hash: 68d61381ba27923bb68d6d9c6e5d5e8ff296cc90 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_snmpget, 0, 3, stdClass, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_BOOL)
5-
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
5+
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
66
ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
77
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
88
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1")
@@ -12,7 +12,7 @@ ZEND_END_ARG_INFO()
1212
#define arginfo_snmpgetnext arginfo_snmpget
1313

1414
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmpwalk, 0, 3, MAY_BE_ARRAY|MAY_BE_BOOL)
15-
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
15+
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
1616
ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
1717
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
1818
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1")
@@ -24,7 +24,7 @@ ZEND_END_ARG_INFO()
2424
#define arginfo_snmpwalkoid arginfo_snmpwalk
2525

2626
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmpset, 0, 5, MAY_BE_ARRAY|MAY_BE_BOOL)
27-
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
27+
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
2828
ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
2929
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
3030
ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
@@ -37,15 +37,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_get_quick_print, 0, 0, _IS_
3737
ZEND_END_ARG_INFO()
3838

3939
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_set_quick_print, 0, 1, _IS_BOOL, 0)
40-
ZEND_ARG_TYPE_INFO(0, quick_print, _IS_BOOL, 0)
40+
ZEND_ARG_TYPE_INFO(0, enable, _IS_BOOL, 0)
4141
ZEND_END_ARG_INFO()
4242

43-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_set_enum_print, 0, 1, _IS_BOOL, 0)
44-
ZEND_ARG_TYPE_INFO(0, enum_print, _IS_BOOL, 0)
45-
ZEND_END_ARG_INFO()
43+
#define arginfo_snmp_set_enum_print arginfo_snmp_set_quick_print
4644

4745
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmp_set_oid_output_format, 0, 1, _IS_BOOL, 0)
48-
ZEND_ARG_TYPE_INFO(0, oid_format, IS_LONG, 0)
46+
ZEND_ARG_TYPE_INFO(0, format, IS_LONG, 0)
4947
ZEND_END_ARG_INFO()
5048

5149
#define arginfo_snmp_set_oid_numeric_print arginfo_snmp_set_oid_output_format
@@ -61,13 +59,13 @@ ZEND_END_ARG_INFO()
6159
#define arginfo_snmp2_set arginfo_snmpset
6260

6361
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_snmp3_get, 0, 8, stdClass, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_BOOL)
64-
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
65-
ZEND_ARG_TYPE_INFO(0, sec_name, IS_STRING, 0)
66-
ZEND_ARG_TYPE_INFO(0, sec_level, IS_STRING, 0)
62+
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
63+
ZEND_ARG_TYPE_INFO(0, security_name, IS_STRING, 0)
64+
ZEND_ARG_TYPE_INFO(0, security_level, IS_STRING, 0)
6765
ZEND_ARG_TYPE_INFO(0, auth_protocol, IS_STRING, 0)
6866
ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0)
69-
ZEND_ARG_TYPE_INFO(0, priv_protocol, IS_STRING, 0)
70-
ZEND_ARG_TYPE_INFO(0, priv_passphrase, IS_STRING, 0)
67+
ZEND_ARG_TYPE_INFO(0, privacy_protocol, IS_STRING, 0)
68+
ZEND_ARG_TYPE_INFO(0, privacy_passphrase, IS_STRING, 0)
7169
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
7270
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1")
7371
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1")
@@ -76,13 +74,13 @@ ZEND_END_ARG_INFO()
7674
#define arginfo_snmp3_getnext arginfo_snmp3_get
7775

7876
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_walk, 0, 8, MAY_BE_ARRAY|MAY_BE_BOOL)
79-
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
80-
ZEND_ARG_TYPE_INFO(0, sec_name, IS_STRING, 0)
81-
ZEND_ARG_TYPE_INFO(0, sec_level, IS_STRING, 0)
77+
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
78+
ZEND_ARG_TYPE_INFO(0, security_name, IS_STRING, 0)
79+
ZEND_ARG_TYPE_INFO(0, security_level, IS_STRING, 0)
8280
ZEND_ARG_TYPE_INFO(0, auth_protocol, IS_STRING, 0)
8381
ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0)
84-
ZEND_ARG_TYPE_INFO(0, priv_protocol, IS_STRING, 0)
85-
ZEND_ARG_TYPE_INFO(0, priv_passphrase, IS_STRING, 0)
82+
ZEND_ARG_TYPE_INFO(0, privacy_protocol, IS_STRING, 0)
83+
ZEND_ARG_TYPE_INFO(0, privacy_passphrase, IS_STRING, 0)
8684
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
8785
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1")
8886
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1")
@@ -91,13 +89,13 @@ ZEND_END_ARG_INFO()
9189
#define arginfo_snmp3_real_walk arginfo_snmp3_walk
9290

9391
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_set, 0, 10, MAY_BE_ARRAY|MAY_BE_BOOL)
94-
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
95-
ZEND_ARG_TYPE_INFO(0, sec_name, IS_STRING, 0)
96-
ZEND_ARG_TYPE_INFO(0, sec_level, IS_STRING, 0)
92+
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
93+
ZEND_ARG_TYPE_INFO(0, security_name, IS_STRING, 0)
94+
ZEND_ARG_TYPE_INFO(0, security_level, IS_STRING, 0)
9795
ZEND_ARG_TYPE_INFO(0, auth_protocol, IS_STRING, 0)
9896
ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0)
99-
ZEND_ARG_TYPE_INFO(0, priv_protocol, IS_STRING, 0)
100-
ZEND_ARG_TYPE_INFO(0, priv_passphrase, IS_STRING, 0)
97+
ZEND_ARG_TYPE_INFO(0, privacy_protocol, IS_STRING, 0)
98+
ZEND_ARG_TYPE_INFO(0, privacy_passphrase, IS_STRING, 0)
10199
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
102100
ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
103101
ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
@@ -118,7 +116,7 @@ ZEND_END_ARG_INFO()
118116

119117
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP___construct, 0, 0, 3)
120118
ZEND_ARG_TYPE_INFO(0, version, IS_LONG, 0)
121-
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
119+
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
122120
ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
123121
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1")
124122
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1")
@@ -128,33 +126,33 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_close, 0, 0, 0)
128126
ZEND_END_ARG_INFO()
129127

130128
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_setSecurity, 0, 0, 1)
131-
ZEND_ARG_TYPE_INFO(0, sec_level, IS_STRING, 0)
132-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, auth_protocol, IS_STRING, 0, "\"\"")
133-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, auth_passphrase, IS_STRING, 0, "\"\"")
134-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, priv_protocol, IS_STRING, 0, "\"\"")
135-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, priv_passphrase, IS_STRING, 0, "\"\"")
129+
ZEND_ARG_TYPE_INFO(0, securityLevel, IS_STRING, 0)
130+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, authProtocol, IS_STRING, 0, "\"\"")
131+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, authPassphrase, IS_STRING, 0, "\"\"")
132+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, privacyProtocol, IS_STRING, 0, "\"\"")
133+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, privacyPassphrase, IS_STRING, 0, "\"\"")
136134
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, contextName, IS_STRING, 0, "\"\"")
137-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, contextEngineID, IS_STRING, 0, "\"\"")
135+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, contextEngineId, IS_STRING, 0, "\"\"")
138136
ZEND_END_ARG_INFO()
139137

140138
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_get, 0, 0, 1)
141-
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
142-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, use_orignames, _IS_BOOL, 0, "false")
139+
ZEND_ARG_TYPE_MASK(0, objectId, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
140+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserveKeys, _IS_BOOL, 0, "false")
143141
ZEND_END_ARG_INFO()
144142

145143
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_getnext, 0, 0, 1)
146-
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
144+
ZEND_ARG_TYPE_MASK(0, objectId, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
147145
ZEND_END_ARG_INFO()
148146

149147
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_walk, 0, 0, 1)
150-
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
151-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, suffix_keys, _IS_BOOL, 0, "false")
152-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, max_repetitions, IS_LONG, 0, "-1")
153-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, non_repeaters, IS_LONG, 0, "-1")
148+
ZEND_ARG_TYPE_MASK(0, objectId, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
149+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, suffixAsKey, _IS_BOOL, 0, "false")
150+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxRepetitions, IS_LONG, 0, "-1")
151+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nonRepeaters, IS_LONG, 0, "-1")
154152
ZEND_END_ARG_INFO()
155153

156154
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SNMP_set, 0, 0, 3)
157-
ZEND_ARG_TYPE_MASK(0, object_id, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
155+
ZEND_ARG_TYPE_MASK(0, objectId, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
158156
ZEND_ARG_TYPE_MASK(0, type, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
159157
ZEND_ARG_TYPE_MASK(0, value, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
160158
ZEND_END_ARG_INFO()

ext/snmp/tests/snmp_set_oid_output_format.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var_dump(snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC));
2424
?>
2525
--EXPECT--
2626
Checking error handling
27-
snmp_set_oid_output_format(): Argument #1 ($oid_format) must be an SNMP_OID_OUTPUT_* constant
27+
snmp_set_oid_output_format(): Argument #1 ($format) must be an SNMP_OID_OUTPUT_* constant
2828
Checking working
2929
bool(true)
3030
bool(true)

0 commit comments

Comments
 (0)