From: Christoph M. Becker Date: Mon, 6 Jul 2020 08:42:54 +0000 (+0200) Subject: Fix sapi_windows_vt100_support() arginfo X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fecea7b89c28001dcb0936b27aa7032f477c8d7a;p=php Fix sapi_windows_vt100_support() arginfo --- diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index babe88f810..2b6e7709e6 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -1314,7 +1314,7 @@ function stream_isatty($stream): bool {} #ifdef PHP_WIN32 /** @param resource $stream */ -function sapi_windows_vt100_support($stream, bool $enable): bool {} +function sapi_windows_vt100_support($stream, bool $enable = UNKNOWN): bool {} #endif /** @param resource $stream */ diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 204b1b49dc..e6f5b00771 100755 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 8890ebea8b2391a8614b844e8e1abc04a988eeb8 */ + * Stub hash: 9cf2c691c081d9aaefaa9d22337a9e00efb0af77 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0) @@ -2026,7 +2026,7 @@ ZEND_END_ARG_INFO() #define arginfo_stream_isatty arginfo_stream_supports_lock #if defined(PHP_WIN32) -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sapi_windows_vt100_support, 0, 2, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sapi_windows_vt100_support, 0, 1, _IS_BOOL, 0) ZEND_ARG_INFO(0, stream) ZEND_ARG_TYPE_INFO(0, enable, _IS_BOOL, 0) ZEND_END_ARG_INFO()