mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
improve pcntl function check
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user