summaryrefslogtreecommitdiffstats
path: root/wp-includes/gettext.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/gettext.php')
-rw-r--r--wp-includes/gettext.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/wp-includes/gettext.php b/wp-includes/gettext.php
index cd08044..ed94ca9 100644
--- a/wp-includes/gettext.php
+++ b/wp-includes/gettext.php
@@ -63,10 +63,12 @@ class gettext_reader {
function readint() {
if ($this->BYTEORDER == 0) {
// low endian
- return array_shift(unpack('V', $this->STREAM->read(4)));
+ $low_end = unpack('V', $this->STREAM->read(4));
+ return array_shift($low_end);
} else {
// big endian
- return array_shift(unpack('N', $this->STREAM->read(4)));
+ $big_end = unpack('N', $this->STREAM->read(4));
+ return array_shift($big_end);
}
}