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_P_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 [url]http://bugs.php.net/?id=25604&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25604&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25604&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25604&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25604&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25604&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25604&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25604&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25604&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25604&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25604&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25604&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25604&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25604&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25604&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25604&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25604&r=float[/url]