]> granicus.if.org Git - php/commitdiff
* tune snmp2_walk.phpt
authorBoris Lytochkin <lytboris@php.net>
Fri, 4 Mar 2011 19:23:25 +0000 (19:23 +0000)
committerBoris Lytochkin <lytboris@php.net>
Fri, 4 Mar 2011 19:23:25 +0000 (19:23 +0000)
* more net-snmp v5.3 compatibility (OPAQUE_SPECIAL_TYPES)

ext/snmp/snmp.c
ext/snmp/tests/snmp2_walk.phpt

index 14ff21455e7ba728fda9240f90d7e53d0ccb1aeb..d0c972b5f091d8a2d8b75ba0c98cead162b9a9cf 100644 (file)
@@ -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);
index e34fbe9e6759d901a60c8a259a6dbee616bc8fa0..3981676eb19fc96b89d84c404685becf1992293b 100644 (file)
@@ -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