diff --git a/build/gen_stub.php b/build/gen_stub.php index 9103ba42191d7..84e212163bbd9 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -15,7 +15,7 @@ use PhpParser\PrettyPrinterAbstract; error_reporting(E_ALL); -ini_set("precision", "17"); +ini_set("precision", "-1"); const PHP_70_VERSION_ID = 70000; const PHP_80_VERSION_ID = 80000; diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index fc138edc5076e..de6a7f06e2e44 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -6,7 +6,7 @@ * @var float * @cvalue M_E */ -const M_E = 2.7182818284590452354; +const M_E = 2.718281828459045; final class __PHP_Incomplete_Class { diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 8db9bd1c1c17d..2ba05ada5500d 100644 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: f445ea17c00f60894eec13b99660c2056e1a6456 */ + * Stub hash: 2615114ae250af0329b861d82f4100c2757457da */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0) @@ -3484,7 +3484,7 @@ static const zend_function_entry class_AssertionError_methods[] = { static void register_basic_functions_symbols(int module_number) { REGISTER_DOUBLE_CONSTANT("M_E", M_E, CONST_CS | CONST_PERSISTENT); - ZEND_ASSERT(M_E == 2.7182818284590451); + ZEND_ASSERT(M_E == 2.718281828459045); zend_add_parameter_attribute(zend_hash_str_find_ptr(CG(function_table), "password_hash", sizeof("password_hash") - 1), 0, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0); diff --git a/ext/standard/tests/math/constants.phpt b/ext/standard/tests/math/constants.phpt index 9492629e3381e..b9a87b571f1e2 100644 --- a/ext/standard/tests/math/constants.phpt +++ b/ext/standard/tests/math/constants.phpt @@ -1,7 +1,7 @@ --TEST-- Math constants --INI-- -precision=14 +precision=-1 --FILE-- ---EXPECTREGEX-- -M_E : 2.718281[0-9]* -M_LOG2E : 1.442695[0-9]* -M_LOG10E : 0.434294[0-9]* -M_LN2 : 0.693147[0-9]* -M_LN10 : 2.302585[0-9]* -M_PI : 3.141592[0-9]* -M_PI_2 : 1.570796[0-9]* -M_PI_4 : 0.785398[0-9]* -M_1_PI : 0.318309[0-9]* -M_2_PI : 0.636619[0-9]* -M_SQRTPI : 1.772453[0-9]* -M_2_SQRTPI: 1.128379[0-9]* -M_LNPI : 1.144729[0-9]* -M_EULER : 0.577215[0-9]* -M_SQRT2 : 1.414213[0-9]* -M_SQRT1_2 : 0.707106[0-9]* -M_SQRT3 : 1.732050[0-9]* +--EXPECT-- +M_E : 2.718281828459045 +M_LOG2E : 1.4426950408889634 +M_LOG10E : 0.4342944819032518 +M_LN2 : 0.6931471805599453 +M_LN10 : 2.302585092994046 +M_PI : 3.141592653589793 +M_PI_2 : 1.5707963267948966 +M_PI_4 : 0.7853981633974483 +M_1_PI : 0.3183098861837907 +M_2_PI : 0.6366197723675814 +M_SQRTPI : 1.772453850905516 +M_2_SQRTPI: 1.1283791670955126 +M_LNPI : 1.1447298858494002 +M_EULER : 0.5772156649015329 +M_SQRT2 : 1.4142135623730951 +M_SQRT1_2 : 0.7071067811865476 +M_SQRT3 : 1.7320508075688772 diff --git a/ext/standard/tests/math/constants_basic.phpt b/ext/standard/tests/math/constants_basic.phpt index f08940b2333a9..82b09bb316a2a 100644 --- a/ext/standard/tests/math/constants_basic.phpt +++ b/ext/standard/tests/math/constants_basic.phpt @@ -1,7 +1,5 @@ --TEST-- Test for pre-defined math constants ---INI-- -precision=14 --FILE--