Skip to content

Commit 12ef3da

Browse files
committed
Fix potential conflict of copy_variation5-win32.phpt
copy_variation1.phpt also creates and deletes a file copy.tmp in the same folder, so conflicts may occur[1]. We apply a quick fix. [1] <https://github.com/php/php-src/actions/runs/11902293714/job/33167012826> Closes GH-16854.
1 parent 9d61cb8 commit 12ef3da

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ fclose($file_handle);
2222
$dest_files = array(
2323

2424
/* Checking case sensitiveness */
25-
"COPY.tmp",
26-
"COPY.TMP",
27-
"CopY.TMP"
25+
"COPY5.tmp",
26+
"COPY5.TMP",
27+
"CopY5.TMP"
2828
);
2929

3030
echo "Size of the source file before copy operation => ";
@@ -80,25 +80,25 @@ Size of the source file before copy operation => int(1500)
8080
-- Iteration 1 --
8181
Copy operation => bool(true)
8282
Existence of destination file => bool(true)
83-
Destination file name => %s/COPY.tmp
83+
Destination file name => %s/COPY5.tmp
8484
Size of source file => int(1500)
8585
Size of destination file => int(1500)
8686

8787
-- Iteration 2 --
8888
Copy operation => bool(true)
8989
Existence of destination file => bool(true)
90-
Destination file name => %s/COPY.TMP
90+
Destination file name => %s/COPY5.TMP
9191
Size of source file => int(1500)
9292
Size of destination file => int(1500)
9393

9494
-- Iteration 3 --
9595
Copy operation => bool(true)
9696
Existence of destination file => bool(true)
97-
Destination file name => %s/CopY.TMP
97+
Destination file name => %s/CopY5.TMP
9898
Size of source file => int(1500)
9999
Size of destination file => int(1500)
100100

101-
Warning: unlink(%s/COPY.TMP): No such file or directory in %s on line %d
101+
Warning: unlink(%s/COPY5.TMP): No such file or directory in %s on line %d
102102

103-
Warning: unlink(%s/CopY.TMP): No such file or directory in %s on line %d
103+
Warning: unlink(%s/CopY5.TMP): No such file or directory in %s on line %d
104104
*** Done ***

0 commit comments

Comments
 (0)