diff --git a/wp-includes/gettext.php b/wp-includes/gettext.php index 45af0f6572..ad605cfded 100644 --- a/wp-includes/gettext.php +++ b/wp-includes/gettext.php @@ -61,12 +61,15 @@ class gettext_reader { * @return Integer from the Stream */ function readint() { + $stream = $this->STREAM->read(4); if ($this->BYTEORDER == 0) { // low endian - return array_shift(unpack('V', $this->STREAM->read(4))); + $unpacked = unpack('V',$stream); + return array_shift($unpacked); } else { // big endian - return array_shift(unpack('N', $this->STREAM->read(4))); + $unpacked = unpack('N',$stream); + return array_shift($unpacked); } }