On Tue, Oct 03, 2006 at 07:08:46PM +0200, LIMA David wrote:
> The condition if (!$match_string || !$return_value )) is always true when 
> $return_value is 0.  When I try with "if ($match_string==NULL || 
> $return_value==NULL)" it works (tested with other interface types that use 
> snmp_status poller).
Yeah, its the problem with type-less variables as in found in PHP.
! can mean too many things and it was lazy programming (by ME!)
that I did not use a proper test.

You're right, it should be using NULL and not !, as you have shown above.

> The comment on top of file is wrong:
> parameters: <oid>|<val1>=<ret1>,<val2>=<ret2>,....
> must be replaced with
> parameters: <oid>,<val1>=<ret1>|<val2>=<ret2>|.... 
Yes, its wrong. I did send the change to Javier (we discussed it long
ago) but it apparently got overlooked.

 - Craig
-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE         Debian developer
csmall at : enc.com.au                      ieee.org           debian.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to