bug57547.phpt 512 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Bug #57547 Settings options on file doesn't give same result as constructor options
  3. --EXTENSIONS--
  4. fileinfo
  5. --FILE--
  6. <?php
  7. $filenames = array("..", __FILE__);
  8. foreach ($filenames as $filename) {
  9. $finfo = new finfo(FILEINFO_MIME);
  10. var_dump($finfo->file($filename));
  11. $finfo2 = new finfo();
  12. var_dump($finfo2->file($filename, FILEINFO_MIME));
  13. }
  14. ?>
  15. --EXPECT--
  16. string(9) "directory"
  17. string(9) "directory"
  18. string(28) "text/x-php; charset=us-ascii"
  19. string(28) "text/x-php; charset=us-ascii"