Edit report at https://bugs.php.net/bug.php?id=65422&edit=1

  ID: 65422
  Updated by: lytboris@php.net
  Reported by: pkryon@yahoo.com
  Summary: Error when calling multiple snmp3 functions
-Status: Open
+Status: Feedback
  Type: Bug
  Package: SNMP related
  Operating System: Debian Wheezy
  PHP Version: 5.5.1
-Assigned To:
+Assigned To: lytboris
  Block user comment: N
  Private report: N

  New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

I can not reproduce this bug in my test environment.
Please post Net-SNMP snmpget commands with their results prooving that your 2nd & 3rd hosts are configured to work with SNMPv3 the same way that your 1st host.

Previous Comments:
[2013-08-08 20:42:55] pkryon@yahoo.com

Test script below returns only the first snmp3_get. The next two fail with a PHP Warning.

This appears to be a problem in all snmp3 functions but seems to work as expected with the snmp/snmp2 functions.

Test script:

echo snmp3_get('device1','snmpuser','authNoPriv','sha','snmppass','','','SNMPv2-MIB::sysLocation.0')."\n";

echo snmp3_get('device2','snmpuser','authNoPriv','sha','snmppass','','','SNMPv2-MIB::sysLocation.0')."\n";

echo snmp3_get('device3','snmpuser','authNoPriv','sha','snmppass','','','SNMPv2-MIB::sysLocation.0')."\n";


Expected result:
STRING: Location 1
STRING: Location 2
STRING: Location 3

Actual result:
STRING: Location 1
PHP Warning: snmp3_get(): No response from in /var/www/test4.php on line 5

PHP Warning: snmp3_get(): No response from in /var/www/test4.php on line 7


Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 10 | next ›
Discussion Overview
groupphp-bugs @
postedAug 8, '13 at 8:43p
activeAug 31, '13 at 6:54a



site design / logo © 2019 Grokbase