php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25604 HAVE_SNMP_PARSE_OID undefined with phpize build
Submitted: 2003-09-19 09:56 UTC Modified: 2003-09-23 04:14 UTC
From: gaz at fission dot org dot uk Assigned:
Status: Closed Package: SNMP related
PHP Version: 4.3.3 OS: Debian GNU/Linux unstable(sid)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
5 + 35 = ?
Subscribe to this entry?

 
 [2003-09-19 09:56 UTC] gaz at fission dot org dot uk
Description:
------------
This may very well be a debian specific bug, I couldn't honestly say.

However, when I run:
phpize
./configure
make
make install
on the snmp library to run as a dynamic module then it compiles fine - but config.h defines the values for HAVE_SNMP_PARSE_OID as undefined when infact the relevant header files are installed. This means that doing an snmpwalk("host","community",$OID) will just keep running and eventually timeout. This seems to happen no matter what $OID is, aside from "system" - it works fine like that.

Reproduce code:
---------------
// note, this was testing again a 3com superstack3 switch

$a = snmpwalk($host, $community, "ifDescr");

print_r($a);

Expected result:
----------------
(
    [0] => STRING: RMON Port 01 on unit 1
    [1] => STRING: RMON Port 02 on unit 1
    [2] => STRING: RMON Port 03 on unit 1
    [3] => STRING: RMON Port 04 on unit 1
    [4] => STRING: RMON Port 05 on unit 1
    [5] => STRING: RMON Port 06 on unit 1
    [6] => STRING: RMON Port 07 on unit 1
    [7] => STRING: RMON Port 08 on unit 1
    [8] => STRING: RMON Port 09 on unit 1
    [9] => STRING: RMON Port 10 on unit 1
    [10] => STRING: RMON Port 11 on unit 1
    [11] => STRING: RMON Port 12 on unit 1
    [12] => STRING: RMON Port 13 on unit 1
    [13] => STRING: RMON Port 14 on unit 1
    [14] => STRING: RMON Port 15 on unit 1
    [15] => STRING: RMON Port 16 on unit 1
    [16] => STRING: RMON Port 17 on unit 1
    [17] => STRING: RMON Port 18 on unit 1
    [18] => STRING: RMON Port 19 on unit 1
    [19] => STRING: RMON Port 20 on unit 1
    [20] => STRING: RMON Port 21 on unit 1
    [21] => STRING: RMON Port 22 on unit 1
    [22] => STRING: RMON Port 23 on unit 1
    [23] => STRING: RMON Port 24 on unit 1
    [24] => STRING: RMON Port 25 on unit 1
    [25] => STRING: RMON Port 26 on unit 1
    [26] => STRING: Console Port 192.168.101.1   on unit 1
    [27] => STRING: Management Port 195.74.109.38   on unit 1
    [28] => STRING: VLAN 00001
    [29] => STRING: 802.1Q Encapsulation Tag 0001
    [30] => STRING: Stack Aggregated Link 01
    [31] => STRING: Stack Aggregated Link 02
    [32] => STRING: Stack Aggregated Link 03
    [33] => STRING: Stack Aggregated Link 04
)


Actual result:
--------------
I just get a timeout

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-23 04:14 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC