1234567891011121314151617181920212223242526272829303132333435363738 |
- --TEST--
- Bug #67647: Bundled libmagic 5.17 does not detect quicktime files correctly
- --EXTENSIONS--
- fileinfo
- --SKIPIF--
- <?php
- if (ini_get("default_charset") != "UTF-8") {
- die("skip require default_charset == UTF-8");
- }
- ?>
- --FILE--
- <?php
- $src = __DIR__ . DIRECTORY_SEPARATOR . "67647.mov";
- $f_base = "67647私はガラスを食べられます.mov";
- $f = __DIR__ . DIRECTORY_SEPARATOR . $f_base;
- /* Streams mb path support is tested a lot elsewhere. Copy the existing file
- therefore, avoid duplication in the repo. */
- if (!copy($src, $f) || empty(glob($f))) {
- die("failed to copy '$src' to '$f'");
- }
- $fi = new finfo(FILEINFO_MIME_TYPE);
- var_dump($fi->file($f));
- ?>
- +++DONE+++
- --CLEAN--
- <?php
- $f_base = "67647私はガラスを食べられます.mov";
- $f = __DIR__ . DIRECTORY_SEPARATOR . $f_base;
- unlink($f);
- ?>
- --EXPECT--
- string(15) "video/quicktime"
- +++DONE+++
|