Browse Source

* tune snmp2_walk.phpt

* more net-snmp v5.3 compatibility (OPAQUE_SPECIAL_TYPES)
experimental/with_scalar_types
Boris Lytochkin 16 years ago
parent
commit
8e600b817e
  1. 2
      ext/snmp/snmp.c
  2. 2
      ext/snmp/tests/snmp2_walk.phpt

2
ext/snmp/snmp.c

@ -654,7 +654,7 @@ static void php_snmp_getvalue(struct variable_list *vars, zval *snmpval TSRMLS_D
ZVAL_STRING(val, buf, 1);
break;
#ifdef NETSNMP_WITH_OPAQUE_SPECIAL_TYPES
#if defined(NETSNMP_WITH_OPAQUE_SPECIAL_TYPES) || defined(OPAQUE_SPECIAL_TYPES)
case ASN_OPAQUE_FLOAT: /* 0x78, asn1.h */
snprintf(buf, buflen, "%f", *vars->val.floatVal);
ZVAL_STRING(val, buf, 1);

2
ext/snmp/tests/snmp2_walk.phpt

@ -68,7 +68,7 @@ bool(false)
Checking working
Single OID
%unicode|string%(5) "array"
int(32)
int(%d)
%unicode|string%(6) "string"
%unicode|string%(6) "string"
Single OID in array

Loading…
Cancel
Save