Home
last modified time | relevance | path

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

12

/php-src/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_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 Dfinfo_open_001.phpt2 finfo_open(): Testing magic_file names
8 var_dump(finfo_open(FILEINFO_MIME, "\0"));
13 var_dump(finfo_open(FILEINFO_MIME, NULL));
14 var_dump(finfo_open(FILEINFO_MIME, ''));
15 var_dump(finfo_open(FILEINFO_MIME, 123));
16 var_dump(finfo_open(FILEINFO_MIME, 1.0));
17 var_dump(finfo_open(FILEINFO_MIME, '/foo/bar/inexistent'));
41 finfo_open(): Argument #2 ($magic_database) must not contain any null bytes
51 Warning: finfo_open(): Failed to load magic database at "%s123" in %s on line %d
58 Warning: finfo_open(): Failed to load magic database at "%s1" in %s 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
12 Warning: finfo_open(): Failed to load magic database at "%sbug77961.magic" 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 Dfinfo_open_004.phpt2 finfo_open(): Testing magic_file names
11 var_dump(finfo_open(FILEINFO_MIME, $buggyPath));
20 Warning: finfo_open(): File name is longer than the maximum allowed path length on this platform (%…
H A Dfinfo_open_003.phpt2 finfo_open(): Testing magic_file names
9 var_dump(finfo_open(FILEINFO_MIME, $buggyPath));
H A Dcve-2014-1943-mb.phpt16 $fi = finfo_open(FILEINFO_NONE);
22 $fi = finfo_open(FILEINFO_NONE, $fm);
H A Dcve-2014-1943.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_close_basic.phpt11 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
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_upstream.phpt15 $finfo = finfo_open(FILEINFO_NONE, file_exists($mp) ? $mp : NULL);
/php-src/ext/fileinfo/
H A Dfileinfo_arginfo.h57 ZEND_FUNCTION(finfo_open);
65 ZEND_FE(finfo_open, arginfo_finfo_open)

Completed in 16 milliseconds

12