1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-26 20:24:39 +01:00

Crypt/Base: fix version_compare call

This commit is contained in:
terrafrost 2017-10-05 05:28:16 -05:00
parent 042c8a9239
commit aeb8a98a25

View File

@ -527,7 +527,7 @@ class Crypt_Base
// Determining whether inline crypting can be used by the cipher
if ($this->use_inline_crypt !== false) {
$this->use_inline_crypt = version_compare(PHP_VERSION, '5.3.0') || function_exists('create_function');
$this->use_inline_crypt = version_compare(PHP_VERSION, '5.3.0') >= 0 || function_exists('create_function');
}
}