Skip to content

Commit 7290dc4

Browse files
committed
Sync gzgets signature with fgets
1 parent ebf461a commit 7290dc4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/zlib/zlib.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ function gzread($stream, int $length): string|false {}
9999

100100
/**
101101
* @param resource $stream
102-
* @implementation-alias fgets
102+
* @alias fgets
103103
*/
104-
function gzgets($stream, int $length = 1024): string|false {}
104+
function gzgets($stream, ?int $length = null): string|false {}
105105

106106
function deflate_init(int $encoding, array $options = []): DeflateContext|false {}
107107

ext/zlib/zlib_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: 940858ddc4ddc7edb1e00960334ffa473224fd85 */
2+
* Stub hash: 5862b97739c885589779f8ba3d13b4e390d72811 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_ob_gzhandler, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
@@ -101,7 +101,7 @@ ZEND_END_ARG_INFO()
101101

102102
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gzgets, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
103103
ZEND_ARG_INFO(0, stream)
104-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "1024")
104+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
105105
ZEND_END_ARG_INFO()
106106

107107
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_deflate_init, 0, 1, DeflateContext, MAY_BE_FALSE)

0 commit comments

Comments
 (0)