@@ -11,28 +11,28 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
11
11
require __DIR__ .'/file.inc ' ;
12
12
13
13
$ file_path = __DIR__ ;
14
- mkdir ("$ file_path/rename_variation2_dir " );
14
+ mkdir ("$ file_path/rename_variation2-win32_dir " );
15
15
16
16
/* Renaming a file and directory to numeric name */
17
17
echo "\n*** Testing rename() by renaming a file and directory to numeric name *** \n" ;
18
- $ fp = fopen ($ file_path ."/rename_variation2.tmp " , "w " );
18
+ $ fp = fopen ($ file_path ."/rename_variation2-win32 .tmp " , "w " );
19
19
fclose ($ fp );
20
20
21
21
// renaming existing file to numeric name
22
- var_dump ( rename ($ file_path ."/rename_variation2.tmp " , $ file_path ."/12345 " ) );
22
+ var_dump ( rename ($ file_path ."/rename_variation2-win32 .tmp " , $ file_path ."/12346 " ) );
23
23
24
24
// ensure that rename worked fine
25
- var_dump ( file_exists ($ file_path ."/rename_variation2.tmp " ) ); // expecting false
26
- var_dump ( file_exists ($ file_path ."/12345 " ) ); // expecting true
25
+ var_dump ( file_exists ($ file_path ."/rename_variation2-win32 .tmp " ) ); // expecting false
26
+ var_dump ( file_exists ($ file_path ."/12346 " ) ); // expecting true
27
27
28
- unlink ($ file_path ."/12345 " );
28
+ unlink ($ file_path ."/12346 " );
29
29
30
30
// renaming a directory to numeric name
31
- var_dump ( rename ($ file_path ."/rename_variation2_dir / " , $ file_path ."/12345 " ) );
31
+ var_dump ( rename ($ file_path ."/rename_variation2-win32_dir / " , $ file_path ."/12346 " ) );
32
32
33
33
// ensure that rename worked fine
34
- var_dump ( file_exists ($ file_path ."/rename_variation2_dir " ) ); // expecting false
35
- var_dump ( file_exists ($ file_path ."/12345 " ) ); // expecting true
34
+ var_dump ( file_exists ($ file_path ."/rename_variation2-win32_dir " ) ); // expecting false
35
+ var_dump ( file_exists ($ file_path ."/12346 " ) ); // expecting true
36
36
37
37
echo "Done \n" ;
38
38
?>
0 commit comments