Home
last modified time | relevance | path

Searched refs:finfo_open (Results 1 – 25 of 34) sorted by relevance

12

/PHP-8.2/ext/fileinfo/tests/
H A Dfinfo_open_basic.phpt2 Test finfo_open() function : basic functionality
9 echo "*** Testing finfo_open() : basic functionality ***\n";
11 // Calling finfo_open() with different options
12 var_dump( finfo_open( FILEINFO_MIME, $magicFile ) );
13 var_dump( finfo_open( FILEINFO_NONE, $magicFile ) );
14 var_dump( finfo_open( FILEINFO_SYMLINK, $magicFile ) );
15 //var_dump( finfo_open( FILEINFO_COMPRESS, $magicFile ) );
16 var_dump( finfo_open( FILEINFO_DEVICES, $magicFile ) );
17 var_dump( finfo_open( FILEINFO_CONTINUE, $magicFile ) );
19 var_dump( finfo_open( FILEINFO_RAW, $magicFile ) );
[all …]
H A Dfinfo_open_001.phpt2 finfo_open(): Testing magic_file names
9 var_dump(finfo_open(FILEINFO_MIME, "\0"));
14 var_dump(finfo_open(FILEINFO_MIME, NULL));
15 var_dump(finfo_open(FILEINFO_MIME, ''));
16 var_dump(finfo_open(FILEINFO_MIME, 123));
17 var_dump(finfo_open(FILEINFO_MIME, 1.0));
18 var_dump(finfo_open(FILEINFO_MIME, '/foo/bar/inexistent'));
22 finfo_open(): Argument #2 ($magic_database) must not contain any null bytes
32 Warning: finfo_open(): Failed to load magic database at "%s123" in %s on line %d
39 Warning: finfo_open(): Failed to load magic database at "%s1" in %s on line %d
[all …]
H A Dfinfo_open_variation1.phpt2 Test finfo_open() function : variations in opening
9 echo "*** Testing finfo_open() : variations in opening ***\n";
11 // Calling finfo_open() with different options
12 var_dump( finfo_open( FILEINFO_MIME | FILEINFO_SYMLINK, $magicFile ) );
13 //var_dump( finfo_open( FILEINFO_COMPRESS | FILEINFO_PRESERVE_ATIME, $magicFile ) );
14 var_dump( finfo_open( FILEINFO_DEVICES | FILEINFO_RAW, $magicFile ) );
18 *** Testing finfo_open() : variations in opening ***
H A Dfinfo_open_error.phpt2 Test finfo_open() function : error functionality
9 echo "*** Testing finfo_open() : error functionality ***\n";
11 var_dump( finfo_open( FILEINFO_MIME, 'foobarfile' ) );
12 var_dump( finfo_open( PHP_INT_MAX - 1, $magicFile ) );
15 var_dump( finfo_open( 'foobar' ) );
28 *** Testing finfo_open() : error functionality ***
30 Warning: finfo_open(%sfoobarfile): Failed to open stream: No such file or directory in %sfinfo_open…
32 Warning: finfo_open(%sfoobarfile): Failed to open stream: No such file or directory in %sfinfo_open…
34 Warning: finfo_open(): Failed to load magic database at "%sfoobarfile" in %sfinfo_open_error.php on…
37 Warning: finfo_open(): using regular magic file `%smagic' in %sfinfo_open_error.php on line %d
[all …]
H A Dbug61964-mb.phpt2 Bug #61964 (finfo_open with directory cause invalid free)
10 $ret = @finfo_open(FILEINFO_NONE, $magic_file . ".non-exits私はガラスを食べられます");
21 $ret = finfo_open(FILEINFO_NONE, $dir);
24 $ret = @finfo_open(FILEINFO_NONE, $dir);
27 $ret = @finfo_open(FILEINFO_NONE, $dir. "/non-exits-dir私はガラスを食べられます");
35 finfo_open(FILEINFO_NONE, $dir);
53 Warning: finfo_open(): offset `string' invalid in %sbug61964-mb.php on line %d
55 Warning: finfo_open(): offset ` Core' invalid in %sbug61964-mb.php on line %d
57 Warning: finfo_open(): offset ` Me' invalid in %sbug61964-mb.php on line %d
59 Warning: finfo_open(): offset `a' invalid in %sbug61964-mb.php on line %d
[all …]
H A Dbug61964.phpt2 Bug #61964 (finfo_open with directory cause invalid free)
10 $ret = @finfo_open(FILEINFO_NONE, $magic_file . ".non-exits");
21 $ret = finfo_open(FILEINFO_NONE, $dir);
24 $ret = @finfo_open(FILEINFO_NONE, $dir);
27 $ret = @finfo_open(FILEINFO_NONE, $dir. "/non-exits-dir");
35 finfo_open(FILEINFO_NONE, $dir);
53 Warning: finfo_open(): offset `string' invalid in %sbug61964.php on line %d
55 Warning: finfo_open(): offset ` Core' invalid in %sbug61964.php on line %d
57 Warning: finfo_open(): offset ` Me' invalid in %sbug61964.php on line %d
59 Warning: finfo_open(): offset `a' invalid in %sbug61964.php on line %d
[all …]
H A Dbug77961.phpt2 Bug #77961 (finfo_open crafted magic parsing SIGABRT)
7 finfo_open(FILEINFO_NONE, __DIR__ . '/bug77961.magic');
10 Warning: finfo_open(): Expected numeric type got `indirect' in %s on line %d
H A Dbug71527.phpt2 Bug #71527 Buffer over-write in finfo_open with malformed magic file
9 $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527.magic");
13 Warning: finfo_open(): Failed to load magic database at "%sbug71527.magic" in %sbug71527.php on lin…
H A Dbug71527-mb.phpt2 Bug #71527 Buffer over-write in finfo_open with malformed magic file
9 … $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527私はガラスを食べられます.magic");
13 Warning: finfo_open(): Failed to load magic database at "%sbug71527私はガラスを食べられます.magic" in %sbug7152…
H A Dbug68996.phpt9 finfo_open(FILEINFO_MIME_TYPE, "\xfc\x63");
13 <b>Warning</b>: finfo_open(%s�c): Failed to open stream: No such file or directory in <b>%sbug6899…
15 <b>Warning</b>: finfo_open(%s�c): Failed to open stream: No such file or directory in <b>%sbug6899…
17 <b>Warning</b>: finfo_open(): Failed to load magic database at &quot;%s�c&quot; in <b>%s</b> on li…
H A Dcve-2014-1943.phpt16 $fi = finfo_open(FILEINFO_NONE);
22 $fi = finfo_open(FILEINFO_NONE, $fm);
H A Dcve-2014-1943-mb.phpt16 $fi = finfo_open(FILEINFO_NONE);
22 $fi = finfo_open(FILEINFO_NONE, $fm);
H A Dbug81723.phpt9 $f = finfo_open();
H A Dbug68731.phpt8 $finfo = finfo_open(FILEINFO_MIME_TYPE);
H A Dbug79756.phpt8 $finfo = finfo_open(FILEINFO_MIME);
H A Dprecedural_finfo_in_method.phpt10 $finfo = finfo_open(FILEINFO_MIME);
H A Dbug69320.phpt10 var_dump(finfo_file(finfo_open(FILEINFO_MIME_TYPE), $fname));
H A Dfinfo_file_stream_001.phpt9 $fp = finfo_open(FILEINFO_MIME_TYPE);
H A Dfinfo_set_flags_basic-mb.phpt8 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
H A Dfinfo_set_flags_basic.phpt8 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
H A Dfinfo_close_basic.phpt11 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
H A Dfinfo_upstream.phpt15 $finfo = finfo_open(FILEINFO_NONE, file_exists($mp) ? $mp : NULL);
H A Dfinfo_file_001.phpt8 $fp = finfo_open();
H A Dfinfo_file_regex.phpt13 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
/PHP-8.2/ext/fileinfo/
H A Dfileinfo_arginfo.h58 ZEND_FUNCTION(finfo_open);
67 ZEND_FE(finfo_open, arginfo_finfo_open)
78 ZEND_ME_MAPPING(__construct, finfo_open, arginfo_class_finfo___construct, ZEND_ACC_PUBLIC)

Completed in 20 milliseconds

12