mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-28 01:28:27 +00:00
ASN1: fix string conversion code for 32-bit PHP installs
This commit is contained in:
parent
699642770d
commit
585e0e44f4
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user