Doc #72882 [NEW]: trader_ht_phasor and trader_ht_sine expect two parameters, one listed

From: Date: Thu, 18 Aug 2016 16:19:13 +0000
Subject: Doc #72882 [NEW]: trader_ht_phasor and trader_ht_sine expect two parameters, one listed
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13829@lists.php.net to get a copy of this message
From: joshua dot saige at gmail dot com Operating system: Irrelevant PHP version: Irrelevant Package: Trader Bug Type: Documentation Problem Bug description:trader_ht_phasor and trader_ht_sine expect two parameters, one listed Description: ------------ The functions trader_ht_phasor and trader_ht_sine expect two parameters, the documentation lists one. The second parameter for both is expected to be a by-reference empty array. This can be verified at http://svn.php.net/viewvc/pecl/trader/trunk/functions/trader_ht_phasor.c?view=markup line 50 for trader_ht_phasor and http://svn.php.net/viewvc/pecl/trader/trunk/functions/trader_ht_sine.c?view=markup line 50 for trader_ht_sine. trader_ht_phasor should have the definition of trader_ht_phasor($real, &$inPhase) trader_ht_sine should have the definition of trader_ht_sine($real, &$sine) Using PHP 7.0.8 with Trader 0.4.0 on Windows Server 2012, IIS 8.5. Test script: --------------- <?php trader_ht_phasor([], []); trader_ht_phasor([]); trader_ht_sine([], []); trader_ht_sine([]); Expected result: ---------------- Lines 4 & 6 will emit a warning. Lines 3 & 5 will not. Actual result: -------------- Warning: trader_ht_phasor() expects exactly 2 parameters, 1 given in test.php on line 4 Warning: trader_ht_sine() expects exactly 2 parameters, 1 given in test.php on line 6 -- Edit bug report at https://bugs.php.net/bug.php?id=72882&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72882&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72882&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72882&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72882&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72882&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72882&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72882&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72882&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72882&r=support Expected behavior: https://bugs.php.net/fix.php?id=72882&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72882&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72882&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72882&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72882&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72882&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72882&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72882&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72882&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72882&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72882&r=mysqlcfg

« previous php.doc.bugs (#13829) next »