From d224faa10f978fdae0b289718b9014540df7ffc5 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Sun, 12 Nov 2023 14:06:02 +0100 Subject: [PATCH] Fix astat imperciseness excemption in test --- ext/standard/tests/file/file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/tests/file/file.inc b/ext/standard/tests/file/file.inc index 0901069717a16..c53c217e970ac 100644 --- a/ext/standard/tests/file/file.inc +++ b/ext/standard/tests/file/file.inc @@ -608,7 +608,7 @@ function compare_stats($stat1, $stat2, $fields, $op = "==", $flag = false ) { { case "==": if ( $stat1[ $fields[$index] ] != $stat2[ $fields[$index] ] ) { - if ( ! in_array( $index, $stat_time_diff_keys ) ) { + if ( ! in_array( $fields[$index], $stat_time_diff_keys ) ) { $result = false; echo "Error: stat1 do not match with stat2 at key value: $fields[$index]\n"; } elseif (abs($stat1[ $fields[$index] ] - $stat2[ $fields[$index] ]) > 1) {