Bug #64159 [NoF->Csd]: Truncated snmpget

From: Date: Sun, 17 Nov 2013 09:31:23 +0000
Subject: Bug #64159 [NoF->Csd]: Truncated snmpget
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182789@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64159&edit=1 ID: 64159 Updated by: laruence@php.net Reported by: loic dot blot at unix-experience dot fr Summary: Truncated snmpget -Status: No Feedback +Status: Closed Type: Bug Package: SNMP related Operating System: * PHP Version: 5.4.11 Assigned To: lytboris Block user comment: N Private report: N New Comment: Automatic comment on behalf of lytboris Revision: http://git.php.net/?p=php-src.git;a=commit;h=2c336c9cde524cb6465bbd75924b7e40251aefab Log: Fixed bug #64159 (Truncated snmpget) Previous Comments: ------------------------------------------------------------------------ [2013-09-13 05:45:03] lytboris@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2013-05-03 12:08:55] lytboris@php.net Please try using this snapshot: http://snaps.php.net/php5.4-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2013-05-03 12:08:02] lytboris@php.net Automatic comment on behalf of lytboris Revision: http://git.php.net/?p=php-src.git;a=commit;h=2c336c9cde524cb6465bbd75924b7e40251aefab Log: Fixed bug #64159 (Truncated snmpget) ------------------------------------------------------------------------ [2013-05-03 12:08:00] lytboris@php.net Automatic comment on behalf of lytboris Revision: http://git.php.net/?p=php-src.git;a=commit;h=e36adfe94a663bc1eeb5d9d378dc80883de179db Log: Fixed bug #64159 (Truncated snmpget) ------------------------------------------------------------------------ [2013-05-03 09:35:46] lytboris@php.net Basically this is because of loosy algorithm predicting string length produced by snmp library function that prints OID values. As a walkaround one can set === snmp_set_valueretrieval(SNMP_VALUE_PLAIN); === (or OO API [SNMP Object]->valueretrieval) and then use bin2hex to decode binary string into hex string. ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=64159 -- Edit this bug report at https://bugs.php.net/bug.php?id=64159&edit=1

« previous php.bugs (#182789) next »