Avoid the 64bit dragons. Fixes #3780 props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@6488 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1a4f8fd617
commit
bce45c481a
@ -114,7 +114,7 @@ class gettext_reader {
|
||||
|
||||
$this->STREAM = $Reader;
|
||||
$magic = $this->readint();
|
||||
if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
|
||||
if ($magic == $MAGIC1 || $magic == $MAGIC3) { // to make sure it works for 64-bit platforms
|
||||
$this->BYTEORDER = 0;
|
||||
} elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
|
||||
$this->BYTEORDER = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user