0 Members and 1 Guest are viewing this topic.
Hi,i had problems with the aocchat.php on my 64bit rootserver.i had to change the function SafeDecHexReverseEndian.here the diff:Code: [Select]diff -Naur aocchat.php.org aocchat.php--- aocchat.php.org 2008-06-30 10:50:50.000000000 +0200+++ aocchat.php 2008-06-30 10:50:53.000000000 +0200@@ -939,6 +939,7 @@ function SafeDecHexReverseEndian($value) { $result = "";+/* $hex = dechex($this -> ReduceTo32Bit($value)); $len = strlen($hex);@@ -956,7 +957,8 @@ { $bytes = str_split($hex, 2); }-+*/+ $bytes = unpack("H*", pack("L*", $value)); for($i = 3; $i >= 0; $i--) $result .= $bytes[$i];@@ -1483,4 +1485,4 @@ return $n; } }-?>\ Kein Zeilenumbruch am Dateiende.+?>
diff -Naur aocchat.php.org aocchat.php--- aocchat.php.org 2008-06-30 10:50:50.000000000 +0200+++ aocchat.php 2008-06-30 10:50:53.000000000 +0200@@ -939,6 +939,7 @@ function SafeDecHexReverseEndian($value) { $result = "";+/* $hex = dechex($this -> ReduceTo32Bit($value)); $len = strlen($hex);@@ -956,7 +957,8 @@ { $bytes = str_split($hex, 2); }-+*/+ $bytes = unpack("H*", pack("L*", $value)); for($i = 3; $i >= 0; $i--) $result .= $bytes[$i];@@ -1483,4 +1485,4 @@ return $n; } }-?>\ Kein Zeilenumbruch am Dateiende.+?>
Someone else had a similar problem, he had to apply the fix below (original source):