mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix astat imperciseness excemption in test
This commit is contained in:
parent
f7f9401cc8
commit
fe34dd1b49
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue