Fix undeclared variable in stat tests

Closes GH-12645
This commit is contained in:
Ilija Tovilo 2023-11-10 12:42:17 +01:00 committed by Ben Ramsey
parent e1c6a7c4de
commit db8c91ae9f
No known key found for this signature in database
GPG key ID: F9C39DC0B9698544

View file

@ -590,9 +590,9 @@ $all_stat_keys = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
"rdev", "size", "atime", "mtime", "ctime",
"blksize", "blocks");
$stat_time_diff_keys = array(8, 'atime');
function compare_stats($stat1, $stat2, $fields, $op = "==", $flag = false ) {
$stat_time_diff_keys = array(8, 'atime');
// dump the stat if requested
if ( $flag == true ) {
var_dump($stat1);