From 8e600b817e9252995bb3da6a13dbe39dc80b3c58 Mon Sep 17 00:00:00 2001 From: Boris Lytochkin Date: Fri, 4 Mar 2011 19:23:25 +0000 Subject: [PATCH] * tune snmp2_walk.phpt * more net-snmp v5.3 compatibility (OPAQUE_SPECIAL_TYPES) --- ext/snmp/snmp.c | 2 +- ext/snmp/tests/snmp2_walk.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 14ff21455e7..d0c972b5f09 100644 --- a/ext/snmp/snmp.c +++ b/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); diff --git a/ext/snmp/tests/snmp2_walk.phpt b/ext/snmp/tests/snmp2_walk.phpt index e34fbe9e675..3981676eb19 100644 --- a/ext/snmp/tests/snmp2_walk.phpt +++ b/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