From 07f728546b4a1d7ce8a79a086c8998fbed2863e0 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 16 Apr 2021 09:06:52 -0500 Subject: [PATCH] X509: apparently list() works differently in 5.6 than in 7.0+ --- phpseclib/File/X509.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index dac4cfca..1e333293 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -671,11 +671,10 @@ class X509 private function mapOutExtensions(&$root, $path) { foreach ($this->extensionValues as $id => $value) { - list($critical, $value) = $value; $root['tbsCertificate']['extensions'][] = [ 'extnId' => $id, - 'extnValue' => $value, - 'critical' => $critical, + 'extnValue' => $value[1], + 'critical' => $value[0], ]; }