64-bits server, problems with numbers

Topics: Developer Forum
Aug 28, 2012 at 2:32 PM

if someone had a problem for 64-bit server, php has a difference of platform Linux servers PHP_MAX_INT the base 64, then change the lines of code below:

function read($sFileName) {

...


function read($sFileName) {

$val = 0;
/**
* @author by Diego Giacobbo
*/
$bit_processor = php_uname("m");
if ($bit_processor != "x86_64") {
$val = -2;
} else if ($bit_processor == "x86_64") {
$val = 4294967294;
}
...


all lines which contains "-2" in file oleread.inc, alter for "$val"