mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-26 21:37:22 +08:00
fix pcntl_* function check
This commit is contained in:
@@ -172,8 +172,8 @@ class Install
|
|||||||
$output = [];
|
$output = [];
|
||||||
$command = "php -r 'var_export(function_exists(\"$fn\"));'";
|
$command = "php -r 'var_export(function_exists(\"$fn\"));'";
|
||||||
$result = exec($command, $output, $result_code);
|
$result = exec($command, $output, $result_code);
|
||||||
$lastThreeChars = substr(trim($output[0]), -3);
|
$lastFourChars = substr(trim($output[0]), -4);
|
||||||
$exists = $lastThreeChars == 'true';
|
$exists = $lastFourChars == 'true';
|
||||||
if (!$exists) {
|
if (!$exists) {
|
||||||
$disabledFunctions[] = $fn;
|
$disabledFunctions[] = $fn;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user