Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Regenerate files #178

Merged
merged 1 commit into from
Jan 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@
'highlight_string',
'sapi_windows_cp_conv',
'sapi_windows_cp_set',
'sapi_windows_generate_ctrl_event',
'sapi_windows_vt100_support',
'sleep',
'time_nanosleep',
Expand Down
21 changes: 21 additions & 0 deletions generated/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,27 @@ function sapi_windows_cp_set(int $cp): void
}


/**
* Sends a CTRL event to another process in the same process group.
*
* @param int $event The CTRL even to send;
* either PHP_WINDOWS_EVENT_CTRL_C
* or PHP_WINDOWS_EVENT_CTRL_BREAK.
* @param int $pid The ID of the process to which to send the event to. If 0
* is given, the event is sent to all processes of the process group.
* @throws MiscException
*
*/
function sapi_windows_generate_ctrl_event(int $event, int $pid = 0): void
{
error_clear_last();
$result = \sapi_windows_generate_ctrl_event($event, $pid);
if ($result === false) {
throw MiscException::createFromPhpError();
}
}


/**
* If enable is omitted, the function returns TRUE if the stream stream has VT100 control codes enabled, FALSE otherwise.
*
Expand Down
1 change: 1 addition & 0 deletions rector-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ services:
highlight_string: 'Safe\highlight_string'
sapi_windows_cp_conv: 'Safe\sapi_windows_cp_conv'
sapi_windows_cp_set: 'Safe\sapi_windows_cp_set'
sapi_windows_generate_ctrl_event: 'Safe\sapi_windows_generate_ctrl_event'
sapi_windows_vt100_support: 'Safe\sapi_windows_vt100_support'
sleep: 'Safe\sleep'
time_nanosleep: 'Safe\time_nanosleep'
Expand Down