1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix type of the PHP_FLOAT_DIG constant

It used to be an int (https://github.com/php/php-src/pull/9616/files#diff-2978fe1c2c45b4eca89dc476376ddc7193bc4e5e7fff0c7d1c465f057b35a5e6L2155) before constant registration was refactored.
This commit is contained in:
Máté Kocsis
2023-09-05 09:35:33 +02:00
parent 49980ee89d
commit 58657ff26a
2 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ const PHP_INT_SIZE = UNKNOWN;
*/
const PHP_FD_SETSIZE = UNKNOWN;
/**
* @var float
* @var int
* @cvalue DBL_DIG
*/
const PHP_FLOAT_DIG = UNKNOWN;

4
main/main_arginfo.h generated
View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: aae9f04a1ef2d0d2698c2e3a617594f0bf3d4cd5 */
* Stub hash: 58c8b6ec69650d241919ebba4f957b4b141fb9f2 */
@@ -37,7 +37,7 @@ static void register_main_symbols(int module_number)
REGISTER_LONG_CONSTANT("PHP_INT_MIN", ZEND_LONG_MIN, CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PHP_INT_SIZE", SIZEOF_ZEND_LONG, CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PHP_FD_SETSIZE", FD_SETSIZE, CONST_PERSISTENT);
REGISTER_DOUBLE_CONSTANT("PHP_FLOAT_DIG", DBL_DIG, CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PHP_FLOAT_DIG", DBL_DIG, CONST_PERSISTENT);
REGISTER_DOUBLE_CONSTANT("PHP_FLOAT_EPSILON", DBL_EPSILON, CONST_PERSISTENT);
REGISTER_DOUBLE_CONSTANT("PHP_FLOAT_MAX", DBL_MAX, CONST_PERSISTENT);
REGISTER_DOUBLE_CONSTANT("PHP_FLOAT_MIN", DBL_MIN, CONST_PERSISTENT);