bcmath
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
Arionum (ARO) cryptocurrency node
|
Arionum (ARO) cryptocurrency node
|
||||||
|
|
||||||
|
|
||||||
Requires php 7.2, mysql/mariadb, php-pdo and php-gmp
|
Requires php 7.2, mysql/mariadb, php-pdo, php-bcmath and php-gmp
|
||||||
|
|
||||||
This app should only be run in the main directory of the domain/subdomain, ex: http://111.111.111.111/
|
This app should only be run in the main directory of the domain/subdomain, ex: http://111.111.111.111/
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ function _log($data){
|
|||||||
$date=date("[Y-m-d H:s:]");
|
$date=date("[Y-m-d H:s:]");
|
||||||
$trace=debug_backtrace();
|
$trace=debug_backtrace();
|
||||||
$location=$trace[1]['class'].'->'.$trace[1]['function'].'()';
|
$location=$trace[1]['class'].'->'.$trace[1]['function'].'()';
|
||||||
//echo "$date [$location] $data\n";
|
if(php_sapi_name() === 'cli') "$date [$location] $data\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function pem2hex ($data) {
|
function pem2hex ($data) {
|
||||||
@@ -209,4 +209,4 @@ function coin2hex($data){
|
|||||||
$bin= base58_decode($data);
|
$bin= base58_decode($data);
|
||||||
return bin2hex($bin);
|
return bin2hex($bin);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ if(!$db) die("Could not connect to the DB backend.");
|
|||||||
if (!extension_loaded("openssl") && !defined("OPENSSL_KEYTYPE_EC")) api_err("Openssl php extension missing");
|
if (!extension_loaded("openssl") && !defined("OPENSSL_KEYTYPE_EC")) api_err("Openssl php extension missing");
|
||||||
if (!extension_loaded("gmp")) api_err("gmp php extension missing");
|
if (!extension_loaded("gmp")) api_err("gmp php extension missing");
|
||||||
if (!extension_loaded('PDO')) api_err("pdo php extension missing");
|
if (!extension_loaded('PDO')) api_err("pdo php extension missing");
|
||||||
|
if (!extension_loaded("bcmath")) api_err("bcmath php extension missing");
|
||||||
|
|
||||||
|
|
||||||
if(floatval(phpversion())<7.2) api_err("The minimum php version required is 7.2");
|
if(floatval(phpversion())<7.2) api_err("The minimum php version required is 7.2");
|
||||||
|
|||||||
Reference in New Issue
Block a user