sapi_windows_generate_ctrl_event() - php 选项信息函数
sapi_windows_generate_ctrl_event()
(PHP 7 >= 7.4.0)
Send a CTRL event to another process
说明
sapi_windows_generate_ctrl_event(int $event[,int $pid= 0]): boolSends a CTRL event to another process in the same process group.
参数
$eventTheCTRLeven to send;eitherPHP_WINDOWS_EVENT_CTRL_C
orPHP_WINDOWS_EVENT_CTRL_BREAK
.
The ID of the process to which to send the event to.If0is given, the event is sent to all processes of the process group.
返回值
成功时返回TRUE
,或者在失败时返回FALSE
。
范例
Basicsapi_windows_generate_ctrl_event()Usage
This example shows how to pass alongCTRL+BREAKevents to a child process. In this case the child process echoesI'm still aliveevery second, until the user pressesCTRL+BREAK, what causes only the child process to be terminated.
参见
proc_open()
执行一个命令,并且打开用来输入/输出的文件指针。sapi_windows_set_ctrl_handler()
Set or remove a CTRL event handler
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!