Skip to content

Commit 4cfdeb3

Browse files
committed
Added missing numeric_index property and fix test data
1 parent d3958f6 commit 4cfdeb3

3 files changed

Lines changed: 60 additions & 29 deletions

File tree

ext/snmp/snmp.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ class SNMP
294294
public bool $oid_increasing_check;
295295
public bool $quick_print;
296296
public bool $enum_print;
297+
public bool $numeric_index;
297298
public bool $numeric_timeticks;
298299
public bool $extended_index;
299300
public bool $dont_print_units;

ext/snmp/snmp_arginfo.h

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/snmp/tests/snmp-object-properties.phpt

Lines changed: 52 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,32 @@ object(SNMP)#%d (%d) {
9292
}
9393
["max_oids"]=>
9494
NULL
95-
["valueretrieval"]=>
96-
int(1)
95+
["oid_increasing_check"]=>
96+
bool(true)
9797
["quick_print"]=>
9898
bool(false)
9999
["enum_print"]=>
100100
bool(false)
101+
["numeric_index"]=>
102+
bool(false)
101103
["numeric_timeticks"]=>
102104
bool(false)
103105
["extended_index"]=>
104106
bool(false)
105-
["dontprint_units"]=>
107+
["dont_print_units"]=>
108+
bool(false)
109+
["escape_quotes"]=>
110+
bool(false)
111+
["print_hex_text"]=>
106112
bool(false)
113+
["valueretrieval"]=>
114+
int(1)
115+
["string_output_format"]=>
116+
int(0)
107117
["oid_output_format"]=>
108118
int(3)
109-
["oid_increasing_check"]=>
110-
bool(true)
111119
["exceptions_enabled"]=>
112120
int(0)
113-
["numeric_index"]=>
114-
bool(false)
115121
}
116122
object(SNMP)#%d (%d) {
117123
["info"]=>
@@ -125,26 +131,32 @@ object(SNMP)#%d (%d) {
125131
}
126132
["max_oids"]=>
127133
int(40)
128-
["valueretrieval"]=>
129-
int(0)
134+
["oid_increasing_check"]=>
135+
bool(false)
130136
["quick_print"]=>
131137
bool(true)
132138
["enum_print"]=>
133139
bool(true)
140+
["numeric_index"]=>
141+
bool(false)
134142
["numeric_timeticks"]=>
135143
bool(false)
136144
["extended_index"]=>
137145
bool(false)
138-
["dontprint_units"]=>
146+
["dont_print_units"]=>
147+
bool(false)
148+
["escape_quotes"]=>
149+
bool(false)
150+
["print_hex_text"]=>
139151
bool(false)
152+
["valueretrieval"]=>
153+
int(0)
154+
["string_output_format"]=>
155+
int(0)
140156
["oid_output_format"]=>
141157
int(4)
142-
["oid_increasing_check"]=>
143-
bool(false)
144158
["exceptions_enabled"]=>
145159
int(0)
146-
["numeric_index"]=>
147-
bool(false)
148160
}
149161
object(SNMP)#%d (%d) {
150162
["info"]=>
@@ -158,26 +170,32 @@ object(SNMP)#%d (%d) {
158170
}
159171
["max_oids"]=>
160172
int(40)
161-
["valueretrieval"]=>
162-
int(1)
173+
["oid_increasing_check"]=>
174+
bool(true)
163175
["quick_print"]=>
164176
bool(true)
165177
["enum_print"]=>
166178
bool(true)
179+
["numeric_index"]=>
180+
bool(false)
167181
["numeric_timeticks"]=>
168182
bool(false)
169183
["extended_index"]=>
170184
bool(false)
171-
["dontprint_units"]=>
185+
["dont_print_units"]=>
186+
bool(false)
187+
["escape_quotes"]=>
188+
bool(false)
189+
["print_hex_text"]=>
172190
bool(false)
191+
["string_output_format"]=>
192+
int(0)
173193
["oid_output_format"]=>
174194
int(3)
175-
["oid_increasing_check"]=>
176-
bool(true)
195+
["valueretrieval"]=>
196+
int(1)
177197
["exceptions_enabled"]=>
178198
int(0)
179-
["numeric_index"]=>
180-
bool(false)
181199
}
182200
bool(true)
183201
bool(true)
@@ -196,26 +214,32 @@ object(SNMP)#%d (%d) {
196214
}
197215
["max_oids"]=>
198216
int(40)
199-
["valueretrieval"]=>
200-
int(1)
217+
["oid_increasing_check"]=>
218+
bool(true)
201219
["quick_print"]=>
202220
bool(true)
203221
["enum_print"]=>
204222
bool(true)
223+
["numeric_index"]=>
224+
bool(false)
205225
["numeric_timeticks"]=>
206226
bool(false)
207227
["extended_index"]=>
208228
bool(false)
209-
["dontprint_units"]=>
229+
["dont_print_units"]=>
230+
bool(false)
231+
["escape_quotes"]=>
232+
bool(false)
233+
["print_hex_text"]=>
210234
bool(false)
235+
["valueretrieval"]=>
236+
int(1)
237+
["string_output_format"]=>
238+
int(0)
211239
["oid_output_format"]=>
212240
int(3)
213-
["oid_increasing_check"]=>
214-
bool(true)
215241
["exceptions_enabled"]=>
216242
int(0)
217-
["numeric_index"]=>
218-
bool(false)
219243
["123"]=>
220244
string(11) "param_value"
221245
}

0 commit comments

Comments
 (0)