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