mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-06 10:10:07 +00:00
Can't pass function return to array_shift.
git-svn-id: https://develop.svn.wordpress.org/trunk@4554 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user