From 22502c24cdaa8ed51e85d2f64d6ce2caafb06948 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 12 Oct 2013 12:19:54 -0500 Subject: [PATCH] ASN1: variable functions had to be strings before PHP 5.4 --- phpseclib/File/ASN1.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php index ba106aa0..9f481fc3 100644 --- a/phpseclib/File/ASN1.php +++ b/phpseclib/File/ASN1.php @@ -540,7 +540,7 @@ class File_ASN1 { } if (isset($value)) { if (isset($special[$key])) { - $value = $special[$key]($value); + $value = call_user_func($special[$key], $value); } return array($key => $value); } @@ -617,7 +617,7 @@ class File_ASN1 { if ($maymatch) { // Got the match: use it. if (isset($special[$key])) { - $candidate = $special[$key]($candidate); + $candidate = call_user_func($special[$key], $candidate); } $map[$key] = $candidate; $i++; @@ -692,7 +692,7 @@ class File_ASN1 { // Got the match: use it. if (isset($special[$key])) { - $candidate = $special[$key]($candidate); + $candidate = call_user_func($special[$key], $candidate); } $map[$key] = $candidate; break; @@ -832,7 +832,7 @@ class File_ASN1 { if (isset($idx)) { if (isset($special[$idx])) { - $source = $special[$idx]($source); + $source = call_user_func($special[$idx], $source); } $this->location[] = $idx; }