[php-src] Issue #8242: SSE terminate the script & proc_open leaves child's running in background
| From: | hassandraga | Date: | Wed, 23 Mar 2022 11:45:26 +0000 |
| Subject: | [php-src] Issue #8242: SSE terminate the script & proc_open leaves child's running in background | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240464@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8242
Comment Author: hassandraga
To reproduce the issue :
- Use the [Mozilla Server-Sent Events
Example](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)
example
- Add something after the
while(true) loop
- Close the browser window
Resulted in this output: The script stops immediately.
But I expected instead: The loop break because of if(connection_aborted()), then
continue normally.