Req #80661 [Opn]: Add string output format function for SNMP

From: Date: Sat, 23 Jan 2021 22:23:52 +0000
Subject: Req #80661 [Opn]: Add string output format function for SNMP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231725@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80661&edit=1 ID: 80661 User updated by: thewitness at cacti dot net Reported by: thewitness at cacti dot net Summary: Add string output format function for SNMP Status: Open Type: Feature/Change Request Package: SNMP related PHP Version: Next minor version Block user comment: N Private report: N New Comment: For some reason on the master branch and stock source, when I run ./configure --with-snmp, I'm getting errors. I was able to compile just fine on PHP-7.3.26 with my changes though. I had had to slightly modify the source for 7.3.26 due to some changes, making changes to php-snmp with the stock master as the basis, with --with-snmp is failing. My guess is that there have been a bunch of type definition changes that have not been migrated to 'master'. There's been a lot of changes between releases, so I'll track the commits and wait for some upstream fixes before doing a pull. Previous Comments: ------------------------------------------------------------------------ [2021-01-22 21:59:38] girgias@php.net As this is a new feature this can only be added in PHP 8.1.0. Please provide a PR to the master branch of php-src on GitHub. It might also need an RFC depending on the scope. ------------------------------------------------------------------------ [2021-01-22 18:28:02] thewitness at cacti dot net I've got the fix building on PHP-8 branch. It's to add a new function: snmp_string_output_format(blah); Do you want a patch, or a pull request? If so, from what branch? ------------------------------------------------------------------------ [2021-01-22 18:26:23] thewitness at cacti dot net Description: ------------ The various native snmp commands for some time have supported what is referred to as a string out put format of: GUESS ASCII HEX However, the current php-snmp implementation can not take advantage of those directives when performing a walk or a get of a variable. Test script: --------------- N/A ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80661&edit=1

« previous php.bugs (#231725) next »