bug24313.phpt 327 B

12345678910111213141516
  1. --TEST--
  2. Bug #24313 (file_exists() throws a warning on nonexistent files when is open_basedir enabled)
  3. --SKIPIF--
  4. <?php
  5. if (substr(PHP_OS, 0, 3) == 'WIN') {
  6. die('skip "/dev" is not available');
  7. }
  8. ?>
  9. --INI--
  10. open_basedir=/dev
  11. --FILE--
  12. <?php
  13. var_dump(file_exists("/dev/bogus_file_no_such_thing"));
  14. ?>
  15. --EXPECT--
  16. bool(false)