PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/general_functions/mkdir-recursive-file-exists.php

http://github.com/facebook/hiphop-php
PHP | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 3e7a58e88bf4a959851d74c022540ee6 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
  2. <<__EntryPoint>>
  3. function main_mkdir_recursive_file_exists() {
  4. $dirName = "mkdirRecursiveFileExists";
  5. @unlink($dirName);
  6. fopen($dirName, "w");
  7. var_dump(@mkdir($dirName, 777, true));
  8. unlink($dirName);
  9. }