|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-04-05 14:34 UTC] sas
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 11:00:01 2025 UTC |
Hello. There is a bug in the snmpwalk() function when used with ucd-snmp 3.6.1. This version of UCD frees the 'community' string on snmp_close(), but PHP does not malloc this string - it passes pointer to variable. When following program is ran with PHP 3.0.7 and UCD 3.6.1, it always crashes: <? $a = snmpwalk("localhost","public","system"); ?> BTW: Current implementation of SNMPWALK is useless - it should return string-indexed array and not just array of values. You need to know to which variable the value belongs. Michal Kara alias lemming