summaryrefslogtreecommitdiff
path: root/ext/snmp/tests
diff options
context:
space:
mode:
authorBoris Lytochkin <lytboris@php.net>2011-02-01 07:45:30 +0000
committerBoris Lytochkin <lytboris@php.net>2011-02-01 07:45:30 +0000
commitdc781e252070da65306a23340bf65e99396ee75e (patch)
treed5d9fbd24314e6671928dab7ce46a3ec722a1d3e /ext/snmp/tests
parentca9b3511f855148458ef0b520965860b76a6761b (diff)
downloadphp-git-dc781e252070da65306a23340bf65e99396ee75e.tar.gz
- Improved SNMP extension:
. Allow ~infinite OIDs in GET/GETNEXT/SET queries. Autochunk them to max_oids upon request.
Diffstat (limited to 'ext/snmp/tests')
-rw-r--r--ext/snmp/tests/snmp_parse_oid.phpt36
1 files changed, 0 insertions, 36 deletions
diff --git a/ext/snmp/tests/snmp_parse_oid.phpt b/ext/snmp/tests/snmp_parse_oid.phpt
deleted file mode 100644
index e0017f50f7..0000000000
--- a/ext/snmp/tests/snmp_parse_oid.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-Function snmp_parse_oid
---CREDITS--
-Boris Lytochkin
---SKIPIF--
-<?php
-require_once(dirname(__FILE__).'/skipif.inc');
-?>
---FILE--
-<?php
-require_once(dirname(__FILE__).'/snmp_include.inc');
-
-//EXPECTF format is quickprint OFF
-snmp_set_quick_print(false);
-snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
-
-$oid1 = 'SNMPv2-MIB::sysContact.0';
-$type1 = 's';
-$oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
-$newvalue1 = $oldvalue1 . '0';
-
-echo "Checking SNMP_MAXOIDS_IN_PDU\n";
-$i = 0;
-$oids = array();
-while($i++ < 128){
- $oids[] = '.1.3.6.1.2.1.1.7.0';
-}
-$z = snmp2_get($hostname, $community, $oids, $timeout, $retries);
-var_dump($z);
-
-?>
---EXPECTF--
-Checking SNMP_MAXOIDS_IN_PDU
-
-Warning: snmp2_get(): Could not process more than %d OIDs in singe GET/GETNEXT/SET query in %s on line %d
-bool(false) \ No newline at end of file