New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve compatibility of SNMP class trim handling under PHP 8.x #5420
Comments
Well, that's odd. It's potentially trimming an array. I thought it was simply a string. This may have been introduced by @netniV converting the library to use multiple OID's in a single request. Not sure why it's showing up now. I'll do a little research this morning. |
PHP8.1.x, PHP-SNMP and snmp->get() errors due to improper use of trim() function
@anarkia1976, Should be resolved now. Report back after you have tested this as clean and close if all good. |
PHP8.1.x, PHP-SNMP and snmp->get() errors due to improper use of trim() function
Do we need to check the other functions for trim too? |
I'm doing that right now. |
|
What's odd is that the |
PHP8.1.x, PHP-SNMP and snmp->get() errors due to improper use of trim() function
@netniV, check my last commit on the |
PHP8.1.x, PHP-SNMP and snmp->get() errors due to improper use of trim() function
Should have made the loops into a a function for cleaner code, You could even have parameters such as a format flag and those of format_snmp_string so that they be passed on to it when format was true instead of trim? |
Going to mark resolved for now. We can always revisit this later. |
Hi Guys,
i see some errors after latest patches:
thanks a lot. stefano.
The text was updated successfully, but these errors were encountered: