Skip to content

Commit e5cb9d7

Browse files
committed
Force ffp-contract to off
1 parent ad5138a commit e5cb9d7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ PHP NEWS
1313
- Core:
1414
. Fixed bug GH-13970 (Incorrect validation of #[Attribute] flags type for
1515
non-compile-time expressions). (ilutov)
16+
. Fixed bug GH-14140 (Floating point bug in range operation on Apple Silicon
17+
hardware). (Derick, Saki)
1618

1719
- DOM:
1820
. Fix crashes when entity declaration is removed while still having entity

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ case $host_cpu in
218218
;;
219219
esac
220220

221+
dnl See https://github.com/php/php-src/issues/14140
222+
AX_CHECK_COMPILE_FLAG([-ffp-contract=off], [CFLAGS="$CFLAGS -ffp-contract=off"])
223+
221224
dnl Mark symbols hidden by default if the compiler (for example, gcc >= 4)
222225
dnl supports it. This can help reduce the binary size and startup time.
223226
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],

0 commit comments

Comments
 (0)