ondrakoupil / csob

PHP client for ČSOB payment gateway eAPI
MIT License
44 stars 18 forks source link

( ! ) Deprecated: Function openssl_free_key() is deprecated in /ondrakoupil/csob-eapi-paygate/src/Crypto.php on line 49 #33

Closed Vitexus closed 3 years ago

Vitexus commented 3 years ago

Update Crypto for PHP Version 8.0.3

Vitexus commented 3 years ago

The manual say:

8.0.0 | This function is now deprecated as it doesn't have an effect anymore.

Two function calls simply removed.

Vitexus commented 3 years ago

Maybe better solution now is condition:

                if(version_compare(PHP_VERSION, '8.0.0', '<'  ))
ondrakoupil commented 3 years ago

Thanks. The issue is fixed in v1.8.4 in 2c175ad