Skip to content

Commit 025e409

Browse files
committed
Added note about bug in PECL Trader.
1 parent 8a2b827 commit 025e409

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@ This project is just an interface to that extension, and does not work without i
1212

1313
Variable types are set on all function parameters.
1414

15-
## Note About Misdocumented Functions
15+
## Note About Mis-documented Functions
1616

1717
The php.net documentation for trader_ht_phasor and trader_ht_sine are incorrect. This was discovered through unit testing of this interface. Both functions require a second parameter, a by reference array that extra data will be written into.
1818

1919
This interface has the correct version of those functions.
2020

21+
### Bug in Trader 0.4.0
22+
23+
The PECL Trader package version 0.4.0 has a bug regarding the two functions above. Though the output parameters are required for the function to execute, they are not used. The returned array is a 2-Dimensional array with the return value and the output parameter combined.
24+
2125
## How to use
2226

23-
Lets assume that you want to generate an Aroon indicator.
27+
Lets assume that you want to generate a correlation indicator.
2428
Instead of using
2529
`trader_correl($Open, $Close, 30)`
2630
You can now use the exact named

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lupecode/php-trader-interface",
33
"description": "An interface to the PHP Trader extension.",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"type": "library",
66
"license": "GNU GPLv3",
77
"authors":[

0 commit comments

Comments
 (0)