From 58657ff26ace4a4b2e88b3cbdeba253d4d002e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Tue, 5 Sep 2023 09:35:33 +0200 Subject: [PATCH] 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. --- main/main.stub.php | 2 +- main/main_arginfo.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/main.stub.php b/main/main.stub.php index 8baec6dc6f1eb..6083ceb1e6ac9 100644 --- a/main/main.stub.php +++ b/main/main.stub.php @@ -157,7 +157,7 @@ */ const PHP_FD_SETSIZE = UNKNOWN; /** - * @var float + * @var int * @cvalue DBL_DIG */ const PHP_FLOAT_DIG = UNKNOWN; diff --git a/main/main_arginfo.h b/main/main_arginfo.h index 4d1b85d2ff83b..1ca5e3a99dbd8 100644 --- a/main/main_arginfo.h +++ b/main/main_arginfo.h @@ -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);