Skip to content

Commit 92d7cbe

Browse files
committed
Fix GH-10292 1st param of mt_srand() has UNKNOWN default on PHP <8.3
1 parent 2787e3c commit 92d7cbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,10 +1548,10 @@ function quoted_printable_encode(string $string): string {}
15481548

15491549
/* mt_rand.c */
15501550

1551-
function mt_srand(int $seed = 0, int $mode = MT_RAND_MT19937): void {}
1551+
function mt_srand(int $seed = UNKNOWN, int $mode = MT_RAND_MT19937): void {}
15521552

15531553
/** @alias mt_srand */
1554-
function srand(int $seed = 0, int $mode = MT_RAND_MT19937): void {}
1554+
function srand(int $seed = UNKNOWN, int $mode = MT_RAND_MT19937): void {}
15551555

15561556
function rand(int $min = UNKNOWN, int $max = UNKNOWN): int {}
15571557

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: 87ed2b04b9b46ce3df78d6f9d6d62bd6b2ae8fe5 */
2+
* Stub hash: eb6a3a2e3cf8f62e768d5d4968606438819e6cf0 */
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)
@@ -1813,7 +1813,7 @@ ZEND_END_ARG_INFO()
18131813
#define arginfo_quoted_printable_encode arginfo_base64_encode
18141814

18151815
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mt_srand, 0, 0, IS_VOID, 0)
1816-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, seed, IS_LONG, 0, "0")
1816+
ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0)
18171817
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "MT_RAND_MT19937")
18181818
ZEND_END_ARG_INFO()
18191819

0 commit comments

Comments
 (0)