Симптомы.
Решение
setlocale (LC_ALL, 'ru_RU.cp1251');
Симптомы.
Решение.
GetInt4d() и заменить ее на:
function GetInt4d ($data, $pos) {
// by Andreas Rehm
$_or_24 = ord($data[$pos+3]);
if ($_or_24>=128) $_ord_24 = -abs((256-$_or_24) << 24);
else $_ord_24 = ($_or_24&127) << 24;
return ord($data[$pos]) | (ord($data[$pos+1]) << 8) |
(ord($data[$pos+2]) << 16) | $_ord_24;
}