Skip to content

Commit 777a00f

Browse files
committed
Fix test & correct error message
1 parent cffd0ba commit 777a00f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/snmp/snmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ PHP_FUNCTION(snmp_set_valueretrieval)
14541454
SNMP_G(valueretrieval) = method;
14551455
RETURN_TRUE;
14561456
} else {
1457-
zend_argument_value_error(1, "must be one of SNMP_VALUE_LIBRARY, SNMP_VALUE_PLAIN, or SNMP_VALUE_OBJECT");
1457+
zend_argument_value_error(1, "must be a bitmask of SNMP_VALUE_LIBRARY, SNMP_VALUE_PLAIN, and SNMP_VALUE_OBJECT");
14581458
RETURN_THROWS();
14591459
}
14601460
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Error handling
190190
Warning: Undefined property: SNMP::$there is no such parameter in %s on line %d
191191
NULL
192192
bool(false)
193-
SNMP retrieval method must be one of SNMP_VALUE_LIBRARY, SNMP_VALUE_PLAIN, or SNMP_VALUE_OBJECT
193+
SNMP retrieval method must be a bitmask of SNMP_VALUE_LIBRARY, SNMP_VALUE_PLAIN, and SNMP_VALUE_OBJECT
194194
SNMP output print format must be an SNMP_OID_OUTPUT_* constant
195195
SNMP::$info property is read-only
196196
NULL

0 commit comments

Comments
 (0)