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

PHP7.1 対応 #62

Open
nanasess opened this issue Dec 22, 2016 · 2 comments
Open

PHP7.1 対応 #62

nanasess opened this issue Dec 22, 2016 · 2 comments
Milestone

Comments

@nanasess
Copy link
Contributor

PHP7.1 で mcrypt が有効になっていると、非推奨のエラーになってしまう。

Function mcrypt_create_iv() is deprecated
app/Plugin/EccubeApi/vendor/bshaffer/oauth2-server-php/src/OAuth2/ResponseType/AuthorizationCode.php:89

oauth2-server-php で mcrypt 関数が存在すると mcrypt_create_iv() を使用しようとするため。

/oauth2-server-php/src/OAuth2/ResponseType/AuthorizationCode.php は以下のような実装になっているので、 openssl 関数を先に評価してやれば良さそうな気がする。

        if (function_exists('mcrypt_create_iv')) {
            $randomData = mcrypt_create_iv(100, MCRYPT_DEV_URANDOM);
        } elseif (function_exists('openssl_random_pseudo_bytes')) {
            $randomData = openssl_random_pseudo_bytes(100);
@nanasess
Copy link
Contributor Author

oauth2-serer-php のほうでは既にマージされているので、次バージョンのリリース待ち

@nanasess
Copy link
Contributor Author

nanasess commented Feb 3, 2017

1.9.0 がリリースされ、本件の問題が解決した模様
https://github.com/bshaffer/oauth2-server-php/releases/tag/v1.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants