Skip to content

Commit

Permalink
Fix astat imperciseness excemption in test
Browse files Browse the repository at this point in the history
  • Loading branch information
iluuu1994 authored and ramsey committed Nov 23, 2023
1 parent f7f9401 commit fe34dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/tests/file/file.inc
Expand Up @@ -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) {
Expand Down

0 comments on commit fe34dd1

Please sign in to comment.