Skip to content

Commit 977c3d1

Browse files
committed
Fix file name clash in curl_copy_handle tests
1 parent d9838e5 commit 977c3d1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ext/curl/tests/curl_copy_handle_variation3.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ curl_setopt($ch1, CURLOPT_SAFE_UPLOAD, 1);
1212
curl_setopt($ch1, CURLOPT_URL, "{$host}/get.php?test=file");
1313
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
1414

15-
$filename = __DIR__ . '/АБВ.txt';
15+
$filename = __DIR__ . '/curl_copy_handle_variation3.txt';
1616
file_put_contents($filename, "Test.");
1717
$file = curl_file_create($filename);
1818
$params = array('file' => $file);
@@ -28,9 +28,9 @@ curl_close($ch2);
2828
?>
2929
--EXPECTF--
3030
bool(true)
31-
string(%d) "АБВ.txt|application/octet-stream|5"
32-
string(%d) "АБВ.txt|application/octet-stream|5"
31+
string(%d) "curl_copy_handle_variation3.txt|application/octet-stream|5"
32+
string(%d) "curl_copy_handle_variation3.txt|application/octet-stream|5"
3333
--CLEAN--
3434
<?php
35-
@unlink(__DIR__ . '/АБВ.txt');
35+
@unlink(__DIR__ . '/curl_copy_handle_variation3.txt');
3636
?>

ext/curl/tests/curl_copy_handle_variation4.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ curl_setopt($ch1, CURLOPT_SAFE_UPLOAD, 1);
1212
curl_setopt($ch1, CURLOPT_URL, "{$host}/get.php?test=file");
1313
// curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
1414

15-
$filename = __DIR__ . '/АБВ.txt';
15+
$filename = __DIR__ . '/curl_copy_handle_variation4.txt';
1616
file_put_contents($filename, "Test.");
1717
$file = curl_file_create($filename);
1818
$params = array('file' => $file);
@@ -39,8 +39,8 @@ curl_multi_close($mh);
3939
===DONE===
4040
--EXPECT--
4141
bool(true)
42-
АБВ.txt|application/octet-stream|5АБВ.txt|application/octet-stream|5===DONE===
42+
curl_copy_handle_variation4.txt|application/octet-stream|5curl_copy_handle_variation4.txt|application/octet-stream|5===DONE===
4343
--CLEAN--
4444
<?php
45-
@unlink(__DIR__ . '/АБВ.txt');
45+
@unlink(__DIR__ . '/curl_copy_handle_variation4.txt');
4646
?>

0 commit comments

Comments
 (0)