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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC