ID:               22248
 Updated by:       [EMAIL PROTECTED]
 Reported By:      simon at dnadogs dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         SNMP related
 Operating System: Solaris 8
 PHP Version:      4CVS-2003-02-17 (stable)
 New Comment:

That's pretty impossible as the configure would fail
if the snmp config fails.

Is 'HAVE_SNMP' defined in main/php_config.h ?

Does the sapi/cli/php binary have the functions?



Previous Comments:
------------------------------------------------------------------------

[2003-02-21 04:12:26] simon at dnadogs dot com

Hi,

tried the latest snapshop and it compiles ok but has no snmp support in
the binary.

errors with snmpget function not available.

------------------------------------------------------------------------

[2003-02-18 23:28:50] [EMAIL PROTECTED]

Can you please try the latest STABLE snapshot?
It has a sanity test for ext/snmp compile in configure
and it would be nice to know if it fails for you
when you configure/compile PHP as CGI.

Also, add the configure lines you have used for
configuring net-snmp and php.


------------------------------------------------------------------------

[2003-02-18 03:33:29] simon at dnadogs dot com

Further info.

A php binary is created in sapi/cgi/ and when i use it with a phpinfo()
it says that snmp is enabled but if I try to use snmp functions i get
they dont exist as follows -

php snmp.php 

Fatal error: Call to undefined function:  snmpget() in
/users/downloads/Apache/php4-STABLE-200302171030/sapi/cgi/snmp.php on
line 2
/users/downloads/Apache/php4-STABLE-200302171030/sapi/cgi/snmp.php(2) :
Fatal error - Call to undefined function:  snmpget()

------------------------------------------------------------------------

[2003-02-18 02:31:10] simon at dnadogs dot com

Hi,
I am running UCD-SNMP 5.07,  I have now compiled and installed snmp
from source and I still have the same problem.

The  apache php module will compile and work,  the cgi wont.
It looks like its compile everything ok then the final linking fails

------------------------------------------------------------------------

[2003-02-17 10:50:01] [EMAIL PROTECTED]

What is the ucd snmp version?
And are you absolutely sure it's not some problem
with that binary? Have you tried compiling it yourself
from sources??


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/22248

-- 
Edit this bug report at http://bugs.php.net/?id=22248&edit=1

Reply via email to