Bug #70476 [NEW]: Wront arginfo for SNMP::setSecurity

From: Date: Fri, 11 Sep 2015 15:53:03 +0000
Subject: Bug #70476 [NEW]: Wront arginfo for SNMP::setSecurity
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195963@lists.php.net to get a copy of this message
From: contact at jubianchi dot fr Operating system: Irrevelant PHP version: 5.5.29 Package: SNMP related Bug Type: Bug Bug description:Wront arginfo for SNMP::setSecurity Description: ------------ SNMP::setSecurity are wrong: it reports an extra 9th argument with no name. See here for the commit in which it was introduced: https://github.com/php/php-src/commit/5e82e334ddffcf577542a74a37f3388d14790686#diff-6c46b817f999c7766e794fca1a93c68aR377 This extra argument does not seem to be used, not documented: * https://github.com/php/php-src/blob/master/ext/snmp/snmp.c#L1908-L1909 * http://fr.php.net/manual/en/snmp.setsecurity.php Test script: --------------- reflection::export(new reflectionmethod('snmp', 'setSecurity')); Expected result: ---------------- Method [ <internal:snmp> public method setSecurity ] { - Parameters [8] { Parameter #0 [ <required> $session ] Parameter #1 [ <required> $sec_level ] Parameter #2 [ <required> $auth_protocol ] Parameter #3 [ <required> $auth_passphrase ] Parameter #4 [ <required> $priv_protocol ] Parameter #5 [ <required> $priv_passphrase ] Parameter #6 [ <required> $contextName ] Parameter #7 [ <required> $contextEngineID ] } } Actual result: -------------- Method [ <internal:snmp> public method setSecurity ] { - Parameters [9] { Parameter #0 [ <required> $session ] Parameter #1 [ <required> $sec_level ] Parameter #2 [ <required> $auth_protocol ] Parameter #3 [ <required> $auth_passphrase ] Parameter #4 [ <required> $priv_protocol ] Parameter #5 [ <required> $priv_passphrase ] Parameter #6 [ <required> $contextName ] Parameter #7 [ <required> $contextEngineID ] Parameter #8 [ <optional> $ ] } } -- Edit bug report at https://bugs.php.net/bug.php?id=70476&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70476&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70476&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70476&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70476&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70476&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70476&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70476&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70476&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70476&r=support Expected behavior: https://bugs.php.net/fix.php?id=70476&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70476&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70476&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70476&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70476&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70476&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70476&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70476&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70476&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70476&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70476&r=mysqlcfg

« previous php.bugs (#195963) next »