summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-18 15:44:23 +0000
committerAndi Gutmans <andi@php.net>2000-06-18 15:44:23 +0000
commit4a6869c98ef6a5f095b9e5488b1c6845a8112c9c (patch)
treef874f73693d782b7c41436176dcff43ada333255 /Zend/zend.c
parent80a05cd78c746189cdf553ad51e073104db8f5c0 (diff)
downloadphp-git-4a6869c98ef6a5f095b9e5488b1c6845a8112c9c.tar.gz
- Better FreeBSD fix. Does fp_except_t exist on 3.4?
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 884259a547..c503b893aa 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -326,8 +326,14 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
#endif
#ifdef __FreeBSD__
- /* FreeBSD floating point precision fix */
- fpsetmask(~FP_X_IMP);
+ {
+ /* FreeBSD floating point precision fix */
+
+ fp_except_t mask;
+
+ mask = fpgetmask();
+ fpsetmask(mask & ~FP_X_IMP);
+ }
#endif
/* Set up utility functions and values */