Can't pass function return to array_shift.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f5d26b3033
commit
fd47a416c5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue