PHP7.1 対応
- Dominant language
- JavaScript
- Stars
- 13
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
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 関数を先に評価してやれば良さそうな気がする。
```php
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);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.