summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-07-26 17:44:20 +0000
committerPierre Joye <pajoye@php.net>2011-07-26 17:44:20 +0000
commitfc8afdf178d5672e74e67683e21404bc31f361fc (patch)
tree09a58587de7dbbee2bd8b96e8620433a4cf54205 /ext
parent498aaae6d86f9b32c4da160bd50cb5962a0b8617 (diff)
downloadphp-git-fc8afdf178d5672e74e67683e21404bc31f361fc.tar.gz
- Fixed bug 55124, recursive mkdir fails with current (dot) directory in path
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/tests/file/bug55124.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/standard/tests/file/bug55124.phpt b/ext/standard/tests/file/bug55124.phpt
new file mode 100644
index 0000000000..892d4508d8
--- /dev/null
+++ b/ext/standard/tests/file/bug55124.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #55124 (recursive mkdir fails with current (dot) directory in path)
+--FILE--
+<?php
+$old_dir_path = getcwd();
+chdir(__DIR__);
+mkdir('a/./b', 0755, true);
+if (is_dir('a/b')) {
+ rmdir('a/b');
+}
+if (is_dir('/a')) {
+ rmdir('a');
+}
+chdir($old_dir_path);
+echo "OK";
+?>
+--EXPECT--
+OK