From 69fad9bf3b29ae69e088b02e618cd8ceec00f8a3 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 15 Sep 2005 23:42:29 +0000 Subject: [PATCH] Reference passing fix from jsteidl. fixes #1676 git-svn-id: http://svn.automattic.com/wordpress/trunk@2882 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/gettext.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/gettext.php b/wp-includes/gettext.php index 45af0f657..ad605cfde 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); } }