mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-25 11:20:03 +00:00
X509: apparently list() works differently in 5.6 than in 7.0+
This commit is contained in:
parent
acc2657511
commit
07f728546b
@ -671,11 +671,10 @@ class X509
|
|||||||
private function mapOutExtensions(&$root, $path)
|
private function mapOutExtensions(&$root, $path)
|
||||||
{
|
{
|
||||||
foreach ($this->extensionValues as $id => $value) {
|
foreach ($this->extensionValues as $id => $value) {
|
||||||
list($critical, $value) = $value;
|
|
||||||
$root['tbsCertificate']['extensions'][] = [
|
$root['tbsCertificate']['extensions'][] = [
|
||||||
'extnId' => $id,
|
'extnId' => $id,
|
||||||
'extnValue' => $value,
|
'extnValue' => $value[1],
|
||||||
'critical' => $critical,
|
'critical' => $value[0],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user