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