bug52624.phpt 408 B

1234567891011121314
  1. --TEST--
  2. Bug #52624 (tempnam() by-pass open_basedir with inexistent directory)
  3. --INI--
  4. open_basedir=.
  5. --FILE--
  6. <?php
  7. echo tempnam("directory_that_not_exists", "prefix_");
  8. ?>
  9. --EXPECTF--
  10. Notice: tempnam(): file created in the system's temporary directory in %sbug52624.php on line %d
  11. Warning: tempnam(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (%s) in %s on line %d