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

http://github.com/facebook/hiphop-php · PHP · 11 lines · 9 code · 2 blank · 0 comment · 0 complexity · 4cbf0c6381cba30f57df87c96ffc83be MD5 · raw file

  1. <?hh
  2. <<__EntryPoint>>
  3. function main_mkdir_recursive() {
  4. $dirName = "mkdirRecursive";
  5. @rmdir($dirName);
  6. mkdir($dirName, 777);
  7. var_dump(@mkdir($dirName, 777, true));
  8. rmdir($dirName);
  9. }