summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-11 17:45:19 +0000
committerAndi Gutmans <andi@php.net>2000-06-11 17:45:19 +0000
commit5928970d2289d2c0a5d4d04d645c24580bcc0e45 (patch)
treeb1d27ffe5690f385ddfccfbe6f4b9baad3fe3cec /Zend
parentcbc8b0f4b4b6c7ca15c6dc63464949ef076bd610 (diff)
downloadphp-git-5928970d2289d2c0a5d4d04d645c24580bcc0e45.tar.gz
- Fixes crash problem on FreeBSD when losing precision. Need to still see
- how to detect we're on FreeBSD
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend.c9
1 files changed, 9 insertions, 0 deletions
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 <floatingpoint.h>
+#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;