-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pcntl_sigtimedwait function cannot callable in macos #125
Comments
php -r 'var_dump(PHP_VERSION,is_callable('pcntl_sigtimedwait'),is_callable('pcntl_signal'));' string(5) "7.0.4" |
Ok why not, I just need to figure out the problem. Following the official docs http://php.net/manual/fr/function.pcntl-sigtimedwait.php is working on PHP7. May be it's a problem with pcntl extension under PHP7 |
got it. if (!function_exists('pcntl_sigtimedwait')) {
function pcntl_sigtimedwait($signals, $siginfo, $sec, $nano)
{
pcntl_signal_dispatch();
if (time_nanosleep($sec, $nano) === true) {
return false;
}
pcntl_signal_dispatch();
return true;
}
} |
yes, I'm going to add this polyfill. Thank you @lamjack |
@Prophet777 welcome |
Polyfill was added GeniusesOfSymfony/PNCTLEventLoopEmitter@ac34105 You can update via composer :) |
:) could u add a callable checker in Gos\Bundle\WebSocketBundle\Event\StartServerListener line 95?
The text was updated successfully, but these errors were encountered: