From: gaz at fission dot org dot uk Operating system: Debian GNU/Linux unstable(sid) PHP version: 4.3.3 PHP Bug Type: SNMP related Bug description: configure fails to define variables for use with snmp module
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 -- Edit bug report at http://bugs.php.net/?id=25604&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25604&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25604&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25604&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25604&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25604&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25604&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25604&r=support Expected behavior: http://bugs.php.net/fix.php?id=25604&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25604&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25604&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25604&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25604&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25604&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25604&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25604&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25604&r=float