Skip to content

Commit fecea7b

Browse files
committed
Fix sapi_windows_vt100_support() arginfo
1 parent 795d2cb commit fecea7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ function stream_isatty($stream): bool {}
13141314

13151315
#ifdef PHP_WIN32
13161316
/** @param resource $stream */
1317-
function sapi_windows_vt100_support($stream, bool $enable): bool {}
1317+
function sapi_windows_vt100_support($stream, bool $enable = UNKNOWN): bool {}
13181318
#endif
13191319

13201320
/** @param resource $stream */

ext/standard/basic_functions_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 8890ebea8b2391a8614b844e8e1abc04a988eeb8 */
2+
* Stub hash: 9cf2c691c081d9aaefaa9d22337a9e00efb0af77 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
@@ -2026,7 +2026,7 @@ ZEND_END_ARG_INFO()
20262026
#define arginfo_stream_isatty arginfo_stream_supports_lock
20272027

20282028
#if defined(PHP_WIN32)
2029-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sapi_windows_vt100_support, 0, 2, _IS_BOOL, 0)
2029+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sapi_windows_vt100_support, 0, 1, _IS_BOOL, 0)
20302030
ZEND_ARG_INFO(0, stream)
20312031
ZEND_ARG_TYPE_INFO(0, enable, _IS_BOOL, 0)
20322032
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)