X509: apparently list() works differently in 5.6 than in 7.0+

This commit is contained in:
terrafrost 2021-04-16 09:06:52 -05:00
parent acc2657511
commit 07f728546b

View File

@ -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],
];
}