Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on PHP 8.1 #2

Open
pmsmiers opened this issue Nov 26, 2022 · 5 comments
Open

Doesn't work on PHP 8.1 #2

pmsmiers opened this issue Nov 26, 2022 · 5 comments
Labels
question Further information is requested

Comments

@pmsmiers
Copy link

From manual page: https://php.net/book.trader

I'm waiting a long time now for someone who can update this version so it works with PHP 8.1 (8.1.12 at this moment).
I'm using Ubuntu with PHP 8.0 and it works great but I really like to move to PHP 8.1

@Girgias
Copy link
Member

Girgias commented Nov 26, 2022

This is not a doc issue, please open an issue on the relevant project: https://github.com/php/pecl-math-trader

@Girgias Girgias closed this as completed Nov 26, 2022
@Girgias Girgias closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2022
@cmb69 cmb69 transferred this issue from php/doc-en Nov 26, 2022
@cmb69 cmb69 reopened this Nov 26, 2022
@cmb69
Copy link
Member

cmb69 commented Nov 28, 2022

Trader 0.5.1 works fine for me with latest PHP 8.1. Please provide details what doesn't work for you.

@cmb69 cmb69 added the question Further information is requested label Nov 28, 2022
@pmsmiers
Copy link
Author

I use the trader_sma, trader_ema, trader_dema,trader_tema, trader_kama and trader_tsf functions to calculate the most optimal indicators to use with crypto. But maybe you're right and if all these functions work for you in PHP8.1 I'll have to check my PHP better. I'll check it first. Thanks

@pmsmiers
Copy link
Author

I've checked again but I get the following message with php -v :

PHP Warning: PHP Startup: trader: Unable to initialize module
Module compiled with module API=20200930
PHP compiled with module API=20210902
These options need to match
in Unknown on line 0
PHP 8.1.13 (cli) (built: Nov 26 2022 14:07:55) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
with Zend OPcache v8.1.13, Copyright (c), by Zend Technologies

@cmb69
Copy link
Member

cmb69 commented Nov 30, 2022

You can't use a module built for PHP 8.0 with PHP 8.1. You need to rebuild the trader module (or fetch a suitable binary); try pecl install trader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants