mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 02:07:09 +00:00
Crypt/Base: fix version_compare call
This commit is contained in:
parent
042c8a9239
commit
aeb8a98a25
@ -527,7 +527,7 @@ class Crypt_Base
|
|||||||
|
|
||||||
// Determining whether inline crypting can be used by the cipher
|
// Determining whether inline crypting can be used by the cipher
|
||||||
if ($this->use_inline_crypt !== false) {
|
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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user