File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
Bug #67647: Bundled libmagic 5.17 does not detect quicktime files correctly
3
3
--SKIPIF--
4
- <?php require_once (dirname (__FILE__ ) . '/skipif.inc ' ); ?>
4
+ <?php
5
+ require_once (dirname (__FILE__ ) . '/skipif.inc ' );
6
+
7
+ if (ini_get ("default_charset " ) != "UTF-8 " ) {
8
+ die ("skip require default_charset == UTF-8 " );
9
+ }
10
+ ?>
5
11
--FILE--
6
12
<?php
7
13
8
- $ f = dirname (__FILE__ ) . DIRECTORY_SEPARATOR . "67647私はガラスを食べられます.mov " ;
14
+ $ src = dirname (__FILE__ ) . DIRECTORY_SEPARATOR . "67647.mov " ;
15
+
16
+ $ f_base = "67647私はガラスを食べられます.mov " ;
17
+ $ f = dirname (__FILE__ ) . DIRECTORY_SEPARATOR . $ f_base ;
18
+
19
+ /* Streams mb path support is tested a lot elsewhere. Copy the existing file
20
+ therefore, avoid duplication in the repo. */
21
+ if (!copy ($ src , $ f ) || empty (glob ($ f ))) {
22
+ die ("failed to copy ' $ src' to ' $ f' " );
23
+ }
9
24
10
25
$ fi = new finfo (FILEINFO_MIME_TYPE );
11
26
var_dump ($ fi ->file ($ f ));
27
+
12
28
?>
13
29
+++DONE+++
30
+ --CLEAN--
31
+ <?php
32
+ $ f_base = "67647私はガラスを食べられます.mov " ;
33
+ $ f = dirname (__FILE__ ) . DIRECTORY_SEPARATOR . $ f_base ;
34
+ unlink ($ f );
35
+ ?>
14
36
--EXPECT--
15
37
string(15) "video/quicktime"
16
38
+++DONE+++
You can’t perform that action at this time.
0 commit comments