PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/streams/file_exists.php

https://github.com/xstudio/hhvm
PHP | 6 lines | 5 code | 1 blank | 0 comment | 0 complexity | af4ca75aa0c26f15e2acc4d0ecf62c9c MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1
  1. <?php
  2. $fnam = __FILE__;
  3. var_dump(file_exists($fnam));
  4. var_dump(file_exists('file://'.$fnam));
  5. var_dump(file_exists('file://'.realpath($fnam)));