hi,
i wanted to use this on a 64bit system and had problems with the GetInt4d() function.
i found via google already a solution to have it on all systems working:
function GetInt4d($data, $pos) {
$_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;
}
maybe someone can add this code to the repository