mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
Fixed #1117 enforce new pthreads version
This commit is contained in:
parent
431c06073d
commit
76e4bf6d5f
@ -55,7 +55,11 @@ if(!extension_loaded("pthreads") and @dl((PHP_SHLIB_SUFFIX === "dll" ? "php_":""
|
|||||||
console("[ERROR] Unable to find the pthreads extension.", true, true, 0);
|
console("[ERROR] Unable to find the pthreads extension.", true, true, 0);
|
||||||
++$errors;
|
++$errors;
|
||||||
}else{
|
}else{
|
||||||
if(version_compare(phpversion("pthreads"), "0.1.0") < 0){
|
$pthreads_version = phpversion("pthreads");
|
||||||
|
if(substr_count($pthreads_version, ".") < 3){
|
||||||
|
$pthreads_version = "0.$pthreads_version";
|
||||||
|
}
|
||||||
|
if(version_compare($pthreads_version, "0.1.0") < 0){
|
||||||
console("[ERROR] pthreads >= 0.1.0 is required.", true, true, 0);
|
console("[ERROR] pthreads >= 0.1.0 is required.", true, true, 0);
|
||||||
++$errors;
|
++$errors;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user