Skip to content
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

Possible adaptation of NativeDriver needed for sapi_windows_set_ctrl_handler in PHP 7.4 #262

Open
ostrolucky opened this issue Feb 11, 2019 · 0 comments

Comments

@ostrolucky
Copy link

@ostrolucky ostrolucky commented Feb 11, 2019

Hello, I welcome you to chip in to https://bugs.php.net/bug.php?id=77377 as this is something which can affect amp core. Current PHP master using sapi_windows_set_ctrl_handler and streams blocks for indifinite time. Reproduction is as simple as

sapi_windows_set_ctrl_handler(function() {
    exit(0);
});

$server = \Amp\Socket\listen('localhost:1337');
\Amp\Promise\wait($server->accept());
@ostrolucky ostrolucky changed the title Possible adaptation of NativeDriver needed for sapi_windows_set_ctrl_handler in PHP 8 Possible adaptation of NativeDriver needed for sapi_windows_set_ctrl_handler in PHP 7.4 Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.