svn: /php/php-src/trunk/ext/snmp/ snmp.c tests/snmp2_walk.phpt
| From: | Boris Lytochkin | Date: | Fri, 04 Mar 2011 19:23:25 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/snmp/ snmp.c tests/snmp2_walk.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-64636@lists.php.net to get a copy of this message | ||
lytboris Fri, 04 Mar 2011 19:23:25 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308932
Log:
* tune snmp2_walk.phpt
* more net-snmp v5.3 compatibility (OPAQUE_SPECIAL_TYPES)
Changed paths:
U php/php-src/trunk/ext/snmp/snmp.c
U php/php-src/trunk/ext/snmp/tests/snmp2_walk.phpt
Modified: php/php-src/trunk/ext/snmp/snmp.c
===================================================================
--- php/php-src/trunk/ext/snmp/snmp.c 2011-03-04 18:58:01 UTC (rev 308931)
+++ php/php-src/trunk/ext/snmp/snmp.c 2011-03-04 19:23:25 UTC (rev 308932)
@@ -654,7 +654,7 @@
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);
Modified: php/php-src/trunk/ext/snmp/tests/snmp2_walk.phpt
===================================================================
--- php/php-src/trunk/ext/snmp/tests/snmp2_walk.phpt 2011-03-04 18:58:01 UTC (rev 308931)
+++ php/php-src/trunk/ext/snmp/tests/snmp2_walk.phpt 2011-03-04 19:23:25 UTC (rev 308932)
@@ -68,7 +68,7 @@
Checking working
Single OID
%unicode|string%(5) "array"
-int(32)
+int(%d)
%unicode|string%(6) "string"
%unicode|string%(6) "string"
Single OID in array