From 9af8606115c5fece6b596b6df7e4d88d9fec2e0f Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 30 Nov 2006 07:30:11 +0000 Subject: [PATCH] Can't pass function return to array_shift. git-svn-id: http://svn.automattic.com/wordpress/trunk@4554 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/gettext.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/gettext.php b/wp-includes/gettext.php index cd080444ca..ed94ca9ee7 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); } }