|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-04-15 16:25 UTC] joropito at ciudad dot com dot ar
Description: ------------ In php_snmp_internal() (snmp.c) its defined int name_length; // length 4 int rootlen = 0; // length 4 but to be architecture portable it needs to be size_t name_length; // length 8 on sparc64 size_t rootlen = 0; //length 8 on sparc64 like ucd/net-snmp defines at snmp_parse_oid() PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 22 12:00:01 2025 UTC |
Here's a patch. It would be nice to be added in CVS snapshots and next release. --- ext/snmp.orig/snmp.c Fri Apr 15 15:07:20 2005 +++ ext/snmp/snmp.c Fri Apr 15 13:33:57 2005 @@ -352,9 +352,9 @@ struct snmp_pdu *pdu=NULL, *response; struct variable_list *vars; oid name[MAX_NAME_LEN]; - int name_length; + size_t name_length; oid root[MAX_NAME_LEN]; - int rootlen = 0; + size_t rootlen = 0; int gotroot = 0; int status, count; char buf[2048];