From:             olivier at oxeva dot fr
Operating system: Linux
PHP version:      5.3SVN-2009-10-25 (snap)
PHP Bug Type:     SNMP related
Bug description:  SNMP3 warning message about security level printed twice

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 bug report at http://bugs.php.net/?id=49990&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49990&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49990&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49990&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49990&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49990&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49990&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49990&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49990&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49990&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49990&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49990&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49990&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49990&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49990&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49990&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49990&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49990&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49990&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49990&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49990&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49990&r=mysqlcfg

Reply via email to