Results of 1 - 1 of about 1 for descspec (0.000 sec.)
- sapi_windows_generate_ctrl_event — CTRLイベント を別プロセスに送信する | PHP 8.... 9414
- sapi_windows_generate_ctrl_event (PHP 7 >= 7.4.0, PHP 8) sapi_windows_generate_ctrl_event — CTRLイベント を別プロセスに送信する 説明 function sapi_windows_generate_ctrl_event ( int $event , int $pid = 0 ): bool 同じプロセスグループの別プロセ
... // 1秒ごとに echo する子プロセスを生成 $cmd = [ 'php' , '-r' , 'while (true) { echo "I\'m still alive\n"; sleep(1); }' ]; $descspec = array([ 'pipe' , 'r' ], [ 'pipe' , 'w' ], [ 'pipe' , 'w' ]); $options = [ 'create_process_group' => true ]; $proc = proc ... _open ( $cmd , $descspec , $pipes , null , null , $options ); while ( true ) { echo fgets ( $pipes [ 1 ]); } ?> 参考 proc_open() - コマンドを実行し ...
-
https://man.mtool.work/php/8.3/function.sapi-windows-generate-ctrl-event.html
PREV
1
NEXT