note 125948 added to function.sapi-windows-generate-ctrl-event
| From: | MichaelQ@php.net | Date: | Mon, 22 Mar 2021 12:05:47 +0000 |
| Subject: | note 125948 added to function.sapi-windows-generate-ctrl-event | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219092@lists.php.net to get a copy of this message | ||
This function may produce a Warning:
sapi_windows_set_ctrl_handler(): CTRL events trapping is only supported on console in script.php..
It happens when script is started by "php-cgi.exe", so "php.exe -q" should be
used instead.
While pressing CTRL+C don't expect the handler to run instantly, i've ran some curl
request in a loop and found that handler runs when either response arrives or request finishes by
timeout.
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.245 (proxied: 185.113.37.206)
----
Manual Page -- http://php.net/manual/en/function.sapi-windows-generate-ctrl-event.php
Edit -- https://master.php.net/note/edit/125948
Del: integrated -- https://master.php.net/note/delete/125948/integrated
Del: useless -- https://master.php.net/note/delete/125948/useless
Del: bad code -- https://master.php.net/note/delete/125948/bad+code
Del: spam -- https://master.php.net/note/delete/125948/spam
Del: non-english -- https://master.php.net/note/delete/125948/non-english
Del: in docs -- https://master.php.net/note/delete/125948/in+docs
Del: other reasons-- https://master.php.net/note/delete/125948
Reject -- https://master.php.net/note/reject/125948
Search -- https://master.php.net/manage/user-notes.php