ASN1: variable functions had to be strings before PHP 5.4

This commit is contained in:
terrafrost 2013-10-12 12:19:54 -05:00
parent a577a09a4f
commit 22502c24cd

View File

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