From c3340584128a9c8b75e2c1aa5630911ad2dc9b9f Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Fri, 22 Dec 2000 21:11:34 +0000 Subject: [PATCH] Set the floating-point exception mask on FreeBSD to 0 (as do other FreeBSD system applications). Also bump up the module API number as the zend_hash_get_current_key change affects source and binary compatibility. --- Zend/zend.c | 14 ++------------ Zend/zend_modules.h | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/Zend/zend.c b/Zend/zend.c index ad5c9815476..8a1ab437fc5 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -334,18 +334,8 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i #endif #ifdef __FreeBSD__ - { - /* FreeBSD floating point precision fix */ -#ifdef HAVE_FP_EXCEPT - fp_except -#else - fp_except_t -#endif - mask; - - mask = fpgetmask(); - fpsetmask(mask & ~FP_X_IMP); - } + /* FreeBSD floating point precision fix */ + fpsetmask(0); #endif zend_startup_extensions_mechanism(); diff --git a/Zend/zend_modules.h b/Zend/zend_modules.h index 197f520b10b..e03e13dd3d6 100644 --- a/Zend/zend_modules.h +++ b/Zend/zend_modules.h @@ -37,7 +37,7 @@ extern unsigned char second_arg_allow_ref[]; #include "zend.h" -#define ZEND_MODULE_API_NO 20001214 +#define ZEND_MODULE_API_NO 20001222 #ifdef ZTS #define USING_ZTS 1 #else