#34447 [NEW]: TRoubles with the net-snmp API

From: Date: Fri, 09 Sep 2005 18:36:30 +0000
Subject: #34447 [NEW]: TRoubles with the net-snmp API
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84809@lists.php.net to get a copy of this message
From: p dot burkhalter at gmx dot net Operating system: SunOS 5.8 PHP version: 5.1.0RC1 PHP Bug Type: SNMP related Bug description: TRoubles with the net-snmp API Description: ------------ While executing a simple php-script started by apache, the php function: snmpget(string hostname, string community, string object_id) Returns FALSE and produces a warning. The test-script is working well, when I run it on the command line by the php-binary => php proto.php The bug is similiar to Bug #32680 But it look's like it still exists a problem. Reproduce code: --------------- <? print snmpget("1.2.3.4", "secret", "system.sysUpTime.0")."\n"; ?> Expected result: ---------------- Timeticks: (56916419) 6 days, 14:06:04.19 Actual result: -------------- It look's like the snmp-api won't proper initialized.. When you set doDebugging to 1 in the snmp.conf, you can see, that the 'domain_list' in snmplib/snmp_transport.c on line 346 don't match to "udp", because domain_list is NULL. I tested it right now with net-snmp-5.2.1.2, but the problem exists with older versions too. All what I do was installing libxm2 and libsnmp with a ordinary ./configure --prefix=/opt/apache/1.3.33 && make && make install && smile after this installing php: ./configure --prefix=/opt/apache/1.3.33 --with-snmp=/opt/apache/1.3.33 --with-libxml-dir=/opt/apache/1.3.33 --without-pear --with-apache=../apache_1.3.33 make && make install && smile and apache: ./configure --activate-module=src/modules/php5/libphp5.a --prefix=/opt/apache/1.3.33 make && make install && smile -- Edit bug report at http://bugs.php.net/?id=34447&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34447&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34447&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34447&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34447&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34447&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34447&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34447&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34447&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34447&r=support Expected behavior: http://bugs.php.net/fix.php?id=34447&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34447&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34447&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34447&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34447&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34447&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34447&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34447&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34447&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34447&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34447&r=mysqlcfg

« previous php.bugs (#84809) next »