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
 [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

Pull Requests

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: Sat Oct 12 10:01:28 2024 UTC