summaryrefslogtreecommitdiffstats
path: root/wp-includes/gettext.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-02-23 15:47:59 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-02-23 15:47:59 +0000
commit132f53ddaeb250222a4ac85ebc0bf4dd780db60e (patch)
treed3deccaeee2dd2460dc36fef83685262ef0b64fc /wp-includes/gettext.php
parent5235dfe56983b253c4ea3ec91bc436e5ffb2660a (diff)
downloadwordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.tar.gz
wordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.tar.xz
wordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.zip
WP Merge to 4929
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@899 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/gettext.php')
-rw-r--r--wp-includes/gettext.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/wp-includes/gettext.php b/wp-includes/gettext.php
index a35b0b9..dd79dcd 100644
--- a/wp-includes/gettext.php
+++ b/wp-includes/gettext.php
@@ -108,10 +108,12 @@ class gettext_reader {
$MAGIC1 = (int) - 1794895138;
// $MAGIC2 = (int)0xde120495; //bug
$MAGIC2 = (int) - 569244523;
+ // 64-bit fix
+ $MAGIC3 = (int) 2500072158;
$this->STREAM = $Reader;
$magic = $this->readint();
- if ($magic == ($MAGIC1 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
+ if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
$this->BYTEORDER = 0;
} elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
$this->BYTEORDER = 1;