|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-19 11:38 UTC] sniper@php.net
[2002-12-01 16:36 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 15:00:02 2025 UTC |
ucd-snmp-4.2.6 & PHP-4.2.3 & Cisco2900xl switch Example code: $uptime = snmpget("x.x.x.x", "public", "system.sysUpTime.0"); $ct = snmpget("x.x.x.x", "public", "system.sysContact.0"); echo ">System UpTime : $uptime<br>System Contact :$ct"; If sysContact is not set in Cisco (null string) the sysUpTime would be copied into $ct. Same effect if using snmpwalk. Fixed by adding into ext/snmp/snmp.c (v1.56) at line 307: retry: /* clear buffers */ buf[0]=(char)0; buf2[0]=(char)0;