From e473078703c533a2291cecb2c87f6c9cbcb86b4c Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 3 Aug 2019 07:27:26 -0500 Subject: [PATCH 1/2] ASN1: fix PHP 7.4 deprecation --- phpseclib/File/ASN1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php index 1a79173d..4bd355a1 100644 --- a/phpseclib/File/ASN1.php +++ b/phpseclib/File/ASN1.php @@ -947,7 +947,7 @@ class File_ASN1 if ($mapping['type'] == FILE_ASN1_TYPE_SET) { sort($value); } - $value = implode($value, ''); + $value = implode('', $value); break; } From 6ae67ef79055465a8775955b25e59e67e801ccfe Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 3 Aug 2019 08:58:51 -0500 Subject: [PATCH 2/2] BigInteger: fix PHP 7.4 deprecations --- phpseclib/Math/BigInteger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 179be048..25377fbc 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -860,7 +860,7 @@ class Math_BigInteger $opts[] = 'OpenSSL'; } if (!empty($opts)) { - $engine.= ' (' . implode($opts, ', ') . ')'; + $engine.= ' (' . implode('.', $opts) . ')'; } return array( 'value' => '0x' . $this->toHex(true),