Commit 61d15870aab for php.net
commit 61d15870aabfb6f981c014d2dfa575a7a1d76556
Author: Tim Düsterhus <tim@bastelstu.be>
Date: Fri Apr 25 22:57:04 2025 +0200
random: Mark `mt_getrandmax()` as `@compile-time-eval` (#18425)
diff --git a/ext/random/random.stub.php b/ext/random/random.stub.php
index fc3b178e55f..b59221bf918 100644
--- a/ext/random/random.stub.php
+++ b/ext/random/random.stub.php
@@ -27,9 +27,13 @@ function rand(int $min = UNKNOWN, int $max = UNKNOWN): int {}
function mt_rand(int $min = UNKNOWN, int $max = UNKNOWN): int {}
+ /** @compile-time-eval */
function mt_getrandmax(): int {}
- /** @alias mt_getrandmax */
+ /**
+ * @compile-time-eval
+ * @alias mt_getrandmax
+ */
function getrandmax(): int {}
/** @refcount 1 */
diff --git a/ext/random/random_arginfo.h b/ext/random/random_arginfo.h
index 3b06d7ba9e4..c1cfb8eb341 100644
Binary files a/ext/random/random_arginfo.h and b/ext/random/random_arginfo.h differ