Re: [PATCH] Allowing an array as a parameter for snmpget()/snmpgetnext()

From: Date: Mon, 20 Sep 2010 23:36:53 +0000
Subject: Re: [PATCH] Allowing an array as a parameter for snmpget()/snmpgetnext()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-49775@lists.php.net to get a copy of this message
Hello, On Mon, Sep 20, 2010 at 2:17 PM, Michael Maclean <mgdm@php.net> wrote: > On 20/09/10 20:46, Jorrit Kronjee wrote: >> >>  Dear list, >> >> To better reflect the behavior of the snmpget command that comes with >> the Net-SNMP package the patch attached makes an array of OIDs as a >> parameter for the snmpget()/snmpgetnext() function possible. > > <snip> > > Looks good to me, for what it's worth. Anyone got objections? > I think the patch at a first glance looks good, although it is a minor cosmetic nitpick, I did catch a line with a couple of extra semi-colons. static void php_snmpv3(INTERNAL_FUNCTION_PARAMETERS, int st) { - char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8; - int a1_len, a2_len, a3_len, a4_len, a5_len, a6_len, a7_len, a8_len; + char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8;; + int a1_len, a2_len, a3_len, a4_len, a5_len, a6_len, a7_len, a8_len;; This patch does move around a bit of code, are there some tests to go along with this patch? -Chris

« previous php.internals (#49775) next »