From:             richrumble at gmail dot com
Operating system: Windows
PHP version:      5.2.6
PHP Bug Type:     SNMP related
Bug description:  Snmp functions fail via CLI

Description:
------------
Technically phpinfo() can show you part of the problem

With SNMP enabled, running that script from the browser will show you snmp
enabled, running the phpinfo script from cli shows it's not enabled, but
every other function is!

Any simple snmp command will result in the following error:
Fatal error: Call to undefined function snmprealwalk() 
substitute snmprealwalk with any snmp function


Reproduce code:
---------------
<?php
phpinfo();
?>

or

<?php
$host = "localhost";
$community = "public";
$oid = ".1.3.6.1.2.1.2.2.1.2";
$arr = snmpwalk($host, $community, $oid);
print_r($arr);
?>

Expected result:
----------------
PhpInfo(cli) that matches phpinfo from browser

SNMP results from host.

Actual result:
--------------
SNMP Extension missing from phpinfo when called via command line interface

-- 
Edit bug report at http://bugs.php.net/?id=45883&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45883&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45883&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45883&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45883&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45883&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45883&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45883&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45883&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45883&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45883&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45883&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45883&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45883&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45883&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45883&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45883&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45883&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45883&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45883&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45883&r=mysqlcfg

Reply via email to