Browse Source

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.
PHP-4.0.5
Sascha Schumann 26 years ago
parent
commit
c334058412
  1. 14
      Zend/zend.c
  2. 2
      Zend/zend_modules.h

14
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();

2
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

Loading…
Cancel
Save