File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ $file_path = __DIR__;
8
8
require ("file.inc " );
9
9
10
10
/* create temp directory */
11
- mkdir ("$ file_path/lstat_stat_variation1 / " ); // temp dir
11
+ mkdir ("$ file_path/lstat_stat_variation2 / " ); // temp dir
12
12
13
13
// renaming a directory and check stat
14
14
echo "*** Testing stat() for directory after being renamed *** \n" ;
15
- $ old_dirname = "$ file_path/lstat_stat_variation1 " ;
16
- $ new_dirname = "$ file_path/lstat_stat_variation1a " ;
15
+ $ old_dirname = "$ file_path/lstat_stat_variation2 " ;
16
+ $ new_dirname = "$ file_path/lstat_stat_variation2a " ;
17
17
$ old_stat = stat ($ old_dirname );
18
18
clearstatcache ();
19
19
var_dump ( rename ($ old_dirname , $ new_dirname ) );
@@ -36,7 +36,8 @@ echo "\n--- Done ---";
36
36
--CLEAN--
37
37
<?php
38
38
$ file_path = __DIR__ ;
39
- rmdir ("$ file_path/lstat_stat_variation1a " );
39
+ @rmdir ("$ file_path/lstat_stat_variation2 " );
40
+ @rmdir ("$ file_path/lstat_stat_variation2a " );
40
41
?>
41
42
--EXPECT--
42
43
*** Testing stat() for directory after being renamed ***
Original file line number Diff line number Diff line change @@ -42,11 +42,13 @@ foreach($src_filenames as $src_filename) {
42
42
unlink ($ dest_filename );
43
43
}
44
44
45
- // clean the temp dir and file
46
- rmdir ("$ file_path/rename_variation " );
47
-
48
45
echo "Done \n" ;
49
46
?>
47
+ --CLEAN--
48
+ <?php
49
+ $ file_path = __DIR__ ;
50
+ @rmdir ("$ file_path/rename_variation " );
51
+ ?>
50
52
--EXPECTF--
51
53
*** Testing rename() : rename files across directories ***
52
54
-- Iteration 1 --
You can’t perform that action at this time.
0 commit comments