diff --git a/ext/standard/tests/array/gh14140.phpt b/ext/standard/tests/array/gh14140.phpt new file mode 100644 index 00000000000..2bc17a236a7 --- /dev/null +++ b/ext/standard/tests/array/gh14140.phpt @@ -0,0 +1,21 @@ +--TEST-- +GH-14140: Floating point bug in range operation on Apple Silicon hardware +--FILE-- + +--EXPECT-- +Array +( + [0] => -0.03 + [1] => -0.02 + [2] => -0.01 + [3] => 0 + [4] => 0.01 + [5] => 0.02 + [6] => 0.03 +)