Reference passing fix from jsteidl. fixes #1676
git-svn-id: http://svn.automattic.com/wordpress/trunk@2882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ef29f0ba5f
commit
69fad9bf3b
|
@ -61,12 +61,15 @@ class gettext_reader {
|
||||||
* @return Integer from the Stream
|
* @return Integer from the Stream
|
||||||
*/
|
*/
|
||||||
function readint() {
|
function readint() {
|
||||||
|
$stream = $this->STREAM->read(4);
|
||||||
if ($this->BYTEORDER == 0) {
|
if ($this->BYTEORDER == 0) {
|
||||||
// low endian
|
// low endian
|
||||||
return array_shift(unpack('V', $this->STREAM->read(4)));
|
$unpacked = unpack('V',$stream);
|
||||||
|
return array_shift($unpacked);
|
||||||
} else {
|
} else {
|
||||||
// big endian
|
// big endian
|
||||||
return array_shift(unpack('N', $this->STREAM->read(4)));
|
$unpacked = unpack('N',$stream);
|
||||||
|
return array_shift($unpacked);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue