Skip to content

Commit f8c2d1e

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Fix astat imperciseness excemption in test
2 parents a785b2f + a687465 commit f8c2d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/tests/file/file.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ function compare_stats($stat1, $stat2, $fields, $op = "==", $flag = false ) {
608608
{
609609
case "==":
610610
if ( $stat1[ $fields[$index] ] != $stat2[ $fields[$index] ] ) {
611-
if ( ! in_array( $index, $stat_time_diff_keys ) ) {
611+
if ( ! in_array( $fields[$index], $stat_time_diff_keys ) ) {
612612
$result = false;
613613
echo "Error: stat1 do not match with stat2 at key value: $fields[$index]\n";
614614
} elseif (abs($stat1[ $fields[$index] ] - $stat2[ $fields[$index] ]) > 1) {

0 commit comments

Comments
 (0)