improve pcntl function check

This commit is contained in:
xiaomlove
2023-06-15 21:29:05 +08:00
parent 0036c4ad28
commit ae77dfa0f6
2 changed files with 10 additions and 5 deletions
+2 -3
View File
@@ -97,9 +97,8 @@ class Test extends Command
*/
public function handle()
{
$r = executeCommand("php -m");
$r = preg_split("/[\r\n]+/", $r);
dd($r);
$r = executeCommand("php -r 'var_export(function_exists(\"pcntl_alarm\"));'");
dd($r == 'true');
}
}