]> granicus.if.org Git - php/commitdiff
Fix incorrect compare_stats operator
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 15 Apr 2019 07:48:39 +0000 (09:48 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 15 Apr 2019 07:48:39 +0000 (09:48 +0200)
ext/standard/tests/file/lstat_stat_variation15.phpt
ext/standard/tests/file/stat_variation3-win32.phpt
ext/standard/tests/file/stat_variation4-win32.phpt
ext/standard/tests/file/stat_variation5-win32.phpt
ext/standard/tests/file/stat_variation6-win32.phpt

index 8278b8dba93234f9197567933c798cbc6a18fce9..467c0ef5518c27ae3d86a4da3ab5c8329885e283 100644 (file)
@@ -43,7 +43,7 @@ $new_stat = lstat($linkname);
 var_dump( compare_self_stat($old_stat) );
 var_dump( compare_self_stat($new_stat) );
 // compare the stat
-var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "=") );
+var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "==") );
 
 echo "\n--- Done ---";
 ?>
index c59d0b10ec313f9cea765d52008a28b49e92999f..2633fd60b82ea8493d9e3af0fca9dc92b224b9f9 100644 (file)
@@ -54,7 +54,7 @@ $new_stat1 = stat($dirname);
 // compare self stats
 var_dump( compare_self_stat($new_stat1) );
 // compare the stats
-var_dump(compare_stats($new_stat, $new_stat1, $all_stat_keys, "="));
+var_dump(compare_stats($new_stat, $new_stat1, $all_stat_keys, "=="));
 clearstatcache();
 
 echo "\n*** Done ***";
index d95eaaa2a7a639a7ff92f7268ab2e80b8e2f9a4b..a5e25f99d03a4458a76663e70cc245dd59dc184b 100644 (file)
@@ -44,7 +44,7 @@ $new_stat = stat($old_dirname);
 var_dump( compare_self_stat($old_stat) );
 var_dump( compare_self_stat($new_stat) );
 // compare the stat
-var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "=") );
+var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "==") );
 // clear the stat
 clearstatcache();
 
@@ -62,7 +62,7 @@ $new_stat = stat($old_filename);
 var_dump( compare_self_stat($old_stat) );
 var_dump( compare_self_stat($new_stat) );
 // compare the stat
-var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "=") );
+var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys, "==") );
 // clear the stat
 clearstatcache();
 
index 9f188bb307e4a25e85eb9938032f138aadba5032..d2c9fd4c84225ea5dba0b1567c5f18d65111c562 100644 (file)
@@ -42,7 +42,7 @@ var_dump( compare_self_stat($old_stat) );
 var_dump( compare_self_stat($new_stat) );
 // compare the stat
 $affected_members = array(10, 'ctime');
-var_dump( compare_stats($old_stat, $new_stat, $affected_members, "=") );
+var_dump( compare_stats($old_stat, $new_stat, $affected_members, "==") );
 // clear the stat
 clearstatcache();
 
index cf38bd3150b3afc3483163151f5a0c53b7f76e5b..38c69f97f20d11c45db0316de39d24cab85c9022 100644 (file)
@@ -43,7 +43,7 @@ var_dump( compare_self_stat($old_stat) );
 var_dump( compare_self_stat($new_stat) );
 // compare the stat
 $affected_members = array( 10, 'ctime');
-var_dump( compare_stats($old_stat, $new_stat, $affected_members, "=") );
+var_dump( compare_stats($old_stat, $new_stat, $affected_members, "==") );
 // clear the stat
 clearstatcache();  // clear statement cache
 
@@ -60,7 +60,7 @@ var_dump( compare_self_stat($old_stat) );
 var_dump( compare_self_stat($new_stat) );
 // compare the stat
 $affected_members = array( 10, 'ctime');
-var_dump( compare_stats($old_stat, $new_stat, $affected_members, "=") );
+var_dump( compare_stats($old_stat, $new_stat, $affected_members, "==") );
 // clear the stat
 clearstatcache();  // clear statement cache