base64_encode((float) $GLOBALS['nonce']) . ':' .
$hash . ':' .
$GLOBALS['root_hash'] . ':' .
- base64_encode(gzcompress(serialize($GLOBALS['found_hashes'])))
+ base64_encode(gzcompress(json_encode($GLOBALS['found_hashes'])))
);
// Set time
$GLOBALS['hash_cycles'] = intval($data[5]);
$GLOBALS['nonce'] = (float) base64_decode($data[6]);
$GLOBALS['root_hash'] = $data[8];
- $GLOBALS['found_hashes'] = unserialize(gzuncompress(base64_decode($data[9])));
+ $GLOBALS['found_hashes'] = json_decode(gzuncompress(base64_decode($data[9])));
// Set modula hash
setModulaHash($data[7]);