aboutsummaryrefslogtreecommitdiff
path: root/src/php-gettext/gettext.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/php-gettext/gettext.php')
-rw-r--r--src/php-gettext/gettext.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/php-gettext/gettext.php b/src/php-gettext/gettext.php
index ad94a98..978794c 100644
--- a/src/php-gettext/gettext.php
+++ b/src/php-gettext/gettext.php
@@ -109,9 +109,9 @@ class gettext_reader {
$this->STREAM = $Reader;
$magic = $this->readint();
- if ($magic == $MAGIC1) {
+ if ($magic == $MAGIC1 || $magic == ($MAGIC1 & 0xFFFFFFFF)) {
$this->BYTEORDER = 0;
- } elseif ($magic == $MAGIC2) {
+ } elseif ($magic == $MAGIC2 || $magic == ($MAGIC2 & 0xFFFFFFFF)) {
$this->BYTEORDER = 1;
} else {
$this->error = 1; // not MO file