xref: /PHP-8.2/ext/standard/tests/file/bug55124.phpt (revision f8d79582)
1--TEST--
2Bug #55124 (recursive mkdir fails with current (dot) directory in path)
3--FILE--
4<?php
5$old_dir_path = getcwd();
6chdir(__DIR__);
7mkdir('a/./b', 0755, true);
8if (is_dir('a/b')) {
9    rmdir('a/b');
10}
11if (is_dir('./a')) {
12    rmdir('a');
13}
14chdir($old_dir_path);
15echo "OK";
16?>
17--EXPECT--
18OK
19