fix pcntl_* function check

This commit is contained in:
lgb
2024-04-10 12:31:34 +08:00
parent b36fd64885
commit 6ea03a2515
+2 -2
View File
@@ -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;
}