From aeb8a98a2514435301e83c59acfea8b6e85dc2b0 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 5 Oct 2017 05:28:16 -0500 Subject: [PATCH] Crypt/Base: fix version_compare call --- phpseclib/Crypt/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/Base.php b/phpseclib/Crypt/Base.php index d4d93ba3..d3db1173 100644 --- a/phpseclib/Crypt/Base.php +++ b/phpseclib/Crypt/Base.php @@ -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'); } }