ASN1: fix string conversion code for 32-bit PHP installs

This commit is contained in:
terrafrost 2023-08-24 20:20:11 -05:00
parent 699642770d
commit 585e0e44f4
1 changed files with 1 additions and 1 deletions

View File

@ -1592,7 +1592,7 @@ class File_ASN1
return false;
}
break;
case ($c & 0x80000000) != 0:
case ($c & (PHP_INT_SIZE == 8 ? 0x80000000 : (1 << 31))) != 0:
return false;
case $c >= 0x04000000:
$v .= chr(0x80 | ($c & 0x3F));