Skip to content

Commit f73c104

Browse files
committed
Fix incorrect compare_stats operator
1 parent 656db96 commit f73c104

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

ext/standard/tests/file/lstat_stat_variation15.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $new_stat = lstat($linkname);
4343
var_dump( compare_self_stat($old_stat) );
4444
var_dump( compare_self_stat($new_stat) );
4545
// compare the stat
46-
var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "=") );
46+
var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "==") );
4747

4848
echo "\n--- Done ---";
4949
?>

ext/standard/tests/file/stat_variation3-win32.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $new_stat1 = stat($dirname);
5454
// compare self stats
5555
var_dump( compare_self_stat($new_stat1) );
5656
// compare the stats
57-
var_dump(compare_stats($new_stat, $new_stat1, $all_stat_keys, "="));
57+
var_dump(compare_stats($new_stat, $new_stat1, $all_stat_keys, "=="));
5858
clearstatcache();
5959

6060
echo "\n*** Done ***";

ext/standard/tests/file/stat_variation4-win32.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $new_stat = stat($old_dirname);
4444
var_dump( compare_self_stat($old_stat) );
4545
var_dump( compare_self_stat($new_stat) );
4646
// compare the stat
47-
var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "=") );
47+
var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "==") );
4848
// clear the stat
4949
clearstatcache();
5050

@@ -62,7 +62,7 @@ $new_stat = stat($old_filename);
6262
var_dump( compare_self_stat($old_stat) );
6363
var_dump( compare_self_stat($new_stat) );
6464
// compare the stat
65-
var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "=") );
65+
var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "==") );
6666
// clear the stat
6767
clearstatcache();
6868

ext/standard/tests/file/stat_variation5-win32.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var_dump( compare_self_stat($old_stat) );
4242
var_dump( compare_self_stat($new_stat) );
4343
// compare the stat
4444
$affected_members = array(10, 'ctime');
45-
var_dump( compare_stats($old_stat, $new_stat, $affected_members, "=") );
45+
var_dump( compare_stats($old_stat, $new_stat, $affected_members, "==") );
4646
// clear the stat
4747
clearstatcache();
4848

ext/standard/tests/file/stat_variation6-win32.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var_dump( compare_self_stat($old_stat) );
4343
var_dump( compare_self_stat($new_stat) );
4444
// compare the stat
4545
$affected_members = array( 10, 'ctime');
46-
var_dump( compare_stats($old_stat, $new_stat, $affected_members, "=") );
46+
var_dump( compare_stats($old_stat, $new_stat, $affected_members, "==") );
4747
// clear the stat
4848
clearstatcache(); // clear statement cache
4949

@@ -60,7 +60,7 @@ var_dump( compare_self_stat($old_stat) );
6060
var_dump( compare_self_stat($new_stat) );
6161
// compare the stat
6262
$affected_members = array( 10, 'ctime');
63-
var_dump( compare_stats($old_stat, $new_stat, $affected_members, "=") );
63+
var_dump( compare_stats($old_stat, $new_stat, $affected_members, "==") );
6464
// clear the stat
6565
clearstatcache(); // clear statement cache
6666

0 commit comments

Comments
 (0)