Skip to content

Commit c429d7d

Browse files
committed
Fix: Regenerate files
1 parent 0a50e83 commit c429d7d

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

generated/functionsList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@
489489
'highlight_string',
490490
'sapi_windows_cp_conv',
491491
'sapi_windows_cp_set',
492+
'sapi_windows_generate_ctrl_event',
492493
'sapi_windows_vt100_support',
493494
'sleep',
494495
'time_nanosleep',

generated/misc.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,27 @@ function sapi_windows_cp_set(int $cp): void
133133
}
134134

135135

136+
/**
137+
* Sends a CTRL event to another process in the same process group.
138+
*
139+
* @param int $event The CTRL even to send;
140+
* either PHP_WINDOWS_EVENT_CTRL_C
141+
* or PHP_WINDOWS_EVENT_CTRL_BREAK.
142+
* @param int $pid The ID of the process to which to send the event to. If 0
143+
* is given, the event is sent to all processes of the process group.
144+
* @throws MiscException
145+
*
146+
*/
147+
function sapi_windows_generate_ctrl_event(int $event, int $pid = 0): void
148+
{
149+
error_clear_last();
150+
$result = \sapi_windows_generate_ctrl_event($event, $pid);
151+
if ($result === false) {
152+
throw MiscException::createFromPhpError();
153+
}
154+
}
155+
156+
136157
/**
137158
* If enable is omitted, the function returns TRUE if the stream stream has VT100 control codes enabled, FALSE otherwise.
138159
*

rector-migrate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ services:
491491
highlight_string: 'Safe\highlight_string'
492492
sapi_windows_cp_conv: 'Safe\sapi_windows_cp_conv'
493493
sapi_windows_cp_set: 'Safe\sapi_windows_cp_set'
494+
sapi_windows_generate_ctrl_event: 'Safe\sapi_windows_generate_ctrl_event'
494495
sapi_windows_vt100_support: 'Safe\sapi_windows_vt100_support'
495496
sleep: 'Safe\sleep'
496497
time_nanosleep: 'Safe\time_nanosleep'

0 commit comments

Comments
 (0)