#49990 [Opn->Ver]: SNMP3 warning message about security level printed twice

From: Date: Sun, 25 Oct 2009 20:07:28 +0000
Subject: #49990 [Opn->Ver]: SNMP3 warning message about security level printed twice
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-143932@lists.php.net to get a copy of this message
 ID:               49990
 Updated by:       jani@php.net
 Reported By:      olivier at oxeva dot fr
-Status:           Open
+Status:           Verified
 Bug Type:         SNMP related
-Operating System: Linux
+Operating System: *
-PHP Version:      5.3SVN-2009-10-25 (snap)
+PHP Version:      5.*, 6 (2009-10-25)


Previous Comments:
------------------------------------------------------------------------

[2009-10-25 11:47:58] olivier at oxeva dot fr

Description:
------------
Warning message when using (incorrectly) snmp3_get is printed twice.
Same bug appears with all snmp3_* functions.

(You don't need a working SNMP server to test this bug).


Reproduce code:
---------------
<?php

// You don't need a working SNMP server to test this bug
snmp3_get('127.0.0.1', 'public', 'a', 'b', 'c',
'd', 'e',
'.1.3.6.1.2.1.1.1.0');


Expected result:
----------------
Warning: snmp3_get(): Invalid security level: a in %s on line 4


Actual result:
--------------
Warning: snmp3_get(): Invalid security level: a in %s on line 4
Warning: snmp3_get(): Invalid security level: a in %s on line 4



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49990&edit=1



Thread (3 messages)

« previous php.bugs (#143932) next »