PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/standard/tests/file/mkdir-006.php

http://github.com/facebook/hiphop-php
PHP | 15 lines | 14 code | 1 blank | 0 comment | 2 complexity | e45f7490216eefe3b2b2b113b5bc7f2f MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?hh <<__EntryPoint>> function main(): void {
  2. chdir(dirname(__FILE__));
  3. $dirpath = "./tmp/foo//bar/logs";
  4. mkdir($dirpath, 0777, true);
  5. if (is_dir($dirpath)) {
  6. echo "Ok.\n";
  7. } else {
  8. echo "Failed.\n";
  9. }
  10. rmdir("./tmp/foo/bar/logs");
  11. rmdir("./tmp/foo/bar/");
  12. rmdir("./tmp/foo/");
  13. rmdir("./tmp/");
  14. }