Skip to content

Instantly share code, notes, and snippets.

@pierrejoye
Created July 26, 2011 17:26
Show Gist options
  • Select an option

  • Save pierrejoye/1107279 to your computer and use it in GitHub Desktop.

Select an option

Save pierrejoye/1107279 to your computer and use it in GitHub Desktop.
Bug #55124 (recursive mkdir fails with current (dot) directory in path)
--TEST--
Bug #55124 (recursive mkdir fails with current (dot) directory in path)
--FILE--
<?php
$old_dir_path = getcwd();
chdir(__DIR__);
mkdir('a/./b');
if (is_dir('a/b')) {
rmdir('a/b');
}
if (is_dir('/a')) {
rmdir('a');
}
chdir($old_dir_path);
echo "OK";
?>
--EXPECT--
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment