throw new \InvalidArgumentException(
sprintf(
- 'Unsupported cipher (%s) defined.',
- $cipher
+ 'Unsupported cipher (%s) defined.',
+ $cipher
)
);
}
*/
protected function isValidPrivateKey($plainKey) {
$res = openssl_get_privatekey($plainKey);
- // TODO: remove resource check one php7.4 is not longer supported
- if (is_resource($res) || (is_object($res) && get_class($res) === 'OpenSSLAsymmetricKey')) {
+ if (is_object($res) && get_class($res) === 'OpenSSLAsymmetricKey') {
$sslInfo = openssl_pkey_get_details($res);
if (isset($sslInfo['key'])) {
return true;
$recommendedPHPModules[] = 'sysvsem';
}
- if (!defined('PASSWORD_ARGON2I') && PHP_VERSION_ID >= 70400) {
+ if (!defined('PASSWORD_ARGON2I')) {
// Installing php-sodium on >=php7.4 will provide PASSWORD_ARGON2I
// on previous version argon2 wasn't part of the "standard" extension
// and RedHat disabled it so even installing php-sodium won't provide argon2i
public function dataDetectContent(): array {
return [
['/', 'httpd/unix-directory'],
- // ['/data.tar.gz', 'application/x-gzip'], TODO: fix as it fails hard on php7.4 now
+ ['/data.tar.gz', 'application/x-gzip'],
['/data.zip', 'application/zip'],
['/testimage.mp3', 'audio/mpeg'],
['/testimage.png', 'image/png'],