From 1a730d1fa0ec1518cdf5fc045dbb3cbeba329cbd Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 6 Oct 2017 00:19:40 +0300 Subject: [PATCH] Add missing primes static attribute --- phpseclib/Math/BigInteger/Engines/PHP.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/phpseclib/Math/BigInteger/Engines/PHP.php b/phpseclib/Math/BigInteger/Engines/PHP.php index 3ea67453..feeeb65b 100644 --- a/phpseclib/Math/BigInteger/Engines/PHP.php +++ b/phpseclib/Math/BigInteger/Engines/PHP.php @@ -70,6 +70,13 @@ abstract class PHP extends Engine * @access protected */ const ENGINE_DIR = 'PHP'; + + /** + * Primes > 2 and < 1000 + * + * @var array + */ + protected static $primes; /** * Default constructor @@ -1326,4 +1333,4 @@ abstract class PHP extends Engine return $temp; } -} \ No newline at end of file +}