php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2841 snmpset () returns an empty array
Submitted: 1999-11-27 00:49 UTC Modified: 2005-03-30 09:00 UTC
From: alex at dreifeld dot de Assigned:
Status: Wont fix Package: Misbehaving function
PHP Version: 3.0.12 OS: Linux 2.0.35
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alex at dreifeld dot de
New email:
PHP Version: OS:

 

 [1999-11-27 00:49 UTC] alex at dreifeld dot de
snmpset () always returns an empty array, while the snmpset-shell command returns the modified data
(sometimes needed to retrieve newly created indexes).

Create a new license entry on a Bintec router (shell command):
snmpset host community .1.3.6.1.4.1.272.254.4.1.1 i 12345
enterprises.272.254.4.1.1.12345.9 = 12345

Same procedure in PHP:
<?
  $ret = snmpset ("host", "community", ".1.3.6.1.4.1.272.254.4.1.1", "i", "12345");
  echo count ($ret), "<br>";
?>
returns:
0 (=no entries in the array)


Used SNMP-version: ucd-snmp-4_0_1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-30 09:00 UTC] sniper@php.net
We are sorry, but we can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Of course PHP 4 will continue to be supported for the
forseeable future.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC