Monthly Archives: 03月 2008

FireStats 1.4.4-stable bug in ip2c on 64bit machines

如果是php 5.2.1 且使用 64位 系统安装 FireStats 1.4.4-stable这个版本的统计可能会遇到国家ip统计工作不正常的情况这时我们需要修改firestats/lib/ip2c/下的ip2c.php 查找function readInt()子类,修改子类代码为 function readInt() { $a=unpack(‘N’, fread($this->m_file, 4)); $b = sprintf(“%b”, $a[1]); if(strlen($b) == 64){ $new = substr($b, 33); $a[1] = bindec($new); } return $a[1]; }

Posted in 历史存档 | Tagged | Leave a comment