pnctl is only available in CLI...
This commit is contained in:
parent
b85e7ec209
commit
1558318283
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ class Timeout
|
|||
{
|
||||
$this->active = true;
|
||||
// declare(ticks = 1);
|
||||
pcntl_signal(SIGALRM, [$this, 'handle'], true);
|
||||
pcntl_alarm($seconds);
|
||||
// pcntl_signal(SIGALRM, [$this, 'handle'], true);
|
||||
// pcntl_alarm($seconds);
|
||||
set_time_limit($seconds + 5);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue