[php-src] PR #22846: ext/gmp: Fix GMP error messages using outdated parameter names

From: Date: Tue, 21 Jul 2026 11:24:12 +0000
Subject: [php-src] PR #22846: ext/gmp: Fix GMP error messages using outdated parameter names
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-37218@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22846 Author: LamentXU123 The argument name in these error messages are different from what is claimed in the documentation and public signatures. - gmp_root(GMP|int|string $num, int $nth): GMP https://www.php.net/manual/en/function.gmp-root.php - gmp_rootrem(GMP|int|string $num, int $nth): array https://www.php.net/manual/en/function.gmp-rootrem.php - gmp_random_range(GMP|int|string $min, GMP|int|string $max): GMP https://www.php.net/manual/en/function.gmp-random-range.php Updated messages: - gmp_root() and gmp_rootrem() now refer to argument 1 as $num instead of $a. - gmp_random_range() now refers to argument 2 as $max instead of $maximum. TBH this is discovered when I am developing an application using gmp, and it take me some time to figure out what $a is in the error message.

« previous php.git-pulls (#37218) next »