diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index bde3924c5fc..40b424040f1 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -1194,9 +1194,9 @@ function mt_srand(int $seed = 0, int $mode = MT_RAND_MT19937): void {} /** @alias mt_srand */ function srand(int $seed = 0, int $mode = MT_RAND_MT19937): void {} -function rand(int $min = 0, int $max = PHP_INT_MAX): int {} +function rand(int $min = UNKNOWN, int $max = UNKNOWN): int {} -function mt_rand(int $min = 0, int $max = PHP_INT_MAX): int {} +function mt_rand(int $min = UNKNOWN, int $max = UNKNOWN): int {} function mt_getrandmax(): int {} diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 4ecc09fe438..aca009456ee 100755 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -1827,8 +1827,8 @@ ZEND_END_ARG_INFO() #define arginfo_srand arginfo_mt_srand ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_rand, 0, 0, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, min, IS_LONG, 0, "0") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, max, IS_LONG, 0, "PHP_INT_MAX") + ZEND_ARG_TYPE_INFO(0, min, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, max, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_mt_rand arginfo_rand