You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
What steps will reproduce the problem?
1. php SNMP.php
2. use PHP/4.3.11
3.
What is the expected output? What do you see instead?
back to prompt ( I think ) when it works properly. I am currently
recieving this error:
PHP Parse error: parse error, unexpected T_STRING, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in
/var/www/html/snmp_monitor/SNMP4.php on line 30
Line 30:
public static function trap($ip, $varBinds=null, $community='public')
Can this code not be used on this old of a version of PHP?
What version of the product are you using? On what operating system?
Centos 4
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 4 Oct 2009 at 8:42
The text was updated successfully, but these errors were encountered:
I ran across this issue as well in php 4.x (had to use it due to project
constraints). To fix this, convert the file into a flat function file (remove
the class declaration and class specific prefixes from the functions, then do a
find/replace on everything 'self::' and replace it with a null value.).
Finally, in your file that calls the class/function, remove the class call so
it just reads "trap" and your params. It will then work fine.
Original issue reported on code.google.com by
[email protected]
on 4 Oct 2009 at 8:42The text was updated successfully, but these errors were encountered: