]> granicus.if.org Git - php/commitdiff
- Fixes crash problem on FreeBSD when losing precision. Need to still see
authorAndi Gutmans <andi@php.net>
Sun, 11 Jun 2000 17:45:19 +0000 (17:45 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 11 Jun 2000 17:45:19 +0000 (17:45 +0000)
- how to detect we're on FreeBSD

Zend/zend.c

index 9cdf8a8083aa02f007d4d4186344d279fab4bdf7..ac64615037c5fc4d80d3a742e761a4cd0f8b66d1 100644 (file)
@@ -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;