From 2c96780e1c10c3c851608835411e21879a069199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 21 Aug 2020 00:42:44 +0200 Subject: Fix UNKNOWN default values in ext/standard Closes GH-6026 --- ext/zlib/zlib.stub.php | 4 ++-- ext/zlib/zlib_arginfo.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/zlib') diff --git a/ext/zlib/zlib.stub.php b/ext/zlib/zlib.stub.php index 8f4ba12c79..f3c96ca545 100644 --- a/ext/zlib/zlib.stub.php +++ b/ext/zlib/zlib.stub.php @@ -41,13 +41,13 @@ function gzuncompress(string $data, int $max_decoded_len = 0): string|false {} * @param resource $fp * @alias fwrite */ -function gzwrite($fp, string $str, int $length = UNKNOWN): int|false {} +function gzwrite($fp, string $str, ?int $length = null): int|false {} /** * @param resource $fp * @alias fwrite */ -function gzputs($fp, string $str, int $length = UNKNOWN): int|false {} +function gzputs($fp, string $str, ?int $length = null): int|false {} /** * @param resource $fp diff --git a/ext/zlib/zlib_arginfo.h b/ext/zlib/zlib_arginfo.h index 134fe9729b..86ce095b3b 100644 --- a/ext/zlib/zlib_arginfo.h +++ b/ext/zlib/zlib_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: ee70bdd414ad35521ea24384e22ab05e641d81e0 */ + * Stub hash: b31cdbe9a5d719194753bfe303d32319478048bb */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ob_gzhandler, 0, 2, MAY_BE_STRING|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) @@ -63,7 +63,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gzwrite, 0, 2, MAY_BE_LONG|MAY_BE_FALSE) ZEND_ARG_INFO(0, fp) ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null") ZEND_END_ARG_INFO() #define arginfo_gzputs arginfo_gzwrite -- cgit v1.2.1