We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22691f9 commit f319419Copy full SHA for f319419
ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt
@@ -24,9 +24,11 @@ for ($i = 0; $i < $how_many; $i++) {
24
}
25
26
$start = realpath(dirname(__FILE__));
27
+$newstart = false;
28
if (strlen($start) <= 248) {
29
// create the exact length
30
$start = $start . "\\" . str_repeat('a', 251 - strlen($start) - 1);
31
+ $newstart = true;
32
33
34
var_dump($start);
@@ -47,6 +49,9 @@ for ($i = 0; $i < $how_many; $i++) {
47
49
$p0 = substr($p, 0, strlen($p) - $i*51);
48
50
rmdir($p0);
51
52
+if ($newstart) {
53
+ rmdir($start);
54
+}
55
56
?>
57
===DONE===
0 commit comments