From 5928970d2289d2c0a5d4d04d645c24580bcc0e45 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Sun, 11 Jun 2000 17:45:19 +0000 Subject: [PATCH] - Fixes crash problem on FreeBSD when losing precision. Need to still see - how to detect we're on FreeBSD --- Zend/zend.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Zend/zend.c b/Zend/zend.c index 9cdf8a8083..ac64615037 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -304,6 +304,10 @@ static void alloc_globals_ctor(zend_alloc_globals *alloc_globals) #endif +#if 0 +/* FreeBSD floating point precision fix */ +#include +#endif int zend_startup(zend_utility_functions *utility_functions, char **extensions, int start_builtin_functions) { @@ -316,6 +320,11 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i start_memory_manager(ALS_C); #endif +#if 0 + /* FreeBSD floating point precision fix */ + fpsetmask(FP_X_IMP); +#endif + /* Set up utility functions and values */ zend_error_cb = utility_functions->error_function; zend_printf = utility_functions->printf_function; -- 2.40.0