Home
last modified time | relevance | path

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

12

/PHP-7.0/ext/fileinfo/tests/
H A Dfinfo_open_001.phpt2 finfo_open(): Testing magic_file names
8 var_dump(finfo_open(FILEINFO_MIME, "\0"));
9 var_dump(finfo_open(FILEINFO_MIME, NULL));
10 var_dump(finfo_open(FILEINFO_MIME, ''));
11 var_dump(finfo_open(FILEINFO_MIME, 123));
12 var_dump(finfo_open(FILEINFO_MIME, 1.0));
13 var_dump(finfo_open(FILEINFO_MIME, '/foo/bar/inexistent'));
17 Warning: finfo_open() expects parameter 2 to be a valid path, string given in %s on line %d
26 Warning: finfo_open(): Failed to load magic database at '%s123'. in %s on line %d
33 Warning: finfo_open(): Failed to load magic database at '%s1'. in %s on line %d
[all …]
H A Dfinfo_open_basic.phpt2 Test finfo_open() function : basic functionality
15 echo "*** Testing finfo_open() : basic functionality ***\n";
17 // Calling finfo_open() with different options
18 var_dump( finfo_open( FILEINFO_MIME, $magicFile ) );
19 var_dump( finfo_open( FILEINFO_NONE, $magicFile ) );
20 var_dump( finfo_open( FILEINFO_SYMLINK, $magicFile ) );
21 //var_dump( finfo_open( FILEINFO_COMPRESS, $magicFile ) );
22 var_dump( finfo_open( FILEINFO_DEVICES, $magicFile ) );
23 var_dump( finfo_open( FILEINFO_CONTINUE, $magicFile ) );
25 var_dump( finfo_open( FILEINFO_RAW, $magicFile ) );
[all …]
H A Dfinfo_open_error.phpt2 Test finfo_open() function : error functionality
7 /* Prototype : resource finfo_open([int options [, string arg]])
15 echo "*** Testing finfo_open() : error functionality ***\n";
17 var_dump( finfo_open( FILEINFO_MIME, 'foobarfile' ) );
18 var_dump( finfo_open( array(), $magicFile ) );
19 var_dump( finfo_open( FILEINFO_MIME, $magicFile, 'extraArg' ) );
20 var_dump( finfo_open( PHP_INT_MAX - 1, $magicFile ) );
21 var_dump( finfo_open( 'foobar' ) );
32 *** Testing finfo_open() : error functionality ***
44 Warning: finfo_open() expects at most 2 parameters, 3 given in %sfinfo_open_error.php on line 14
[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);
61 Notice: finfo_open(): Warning: type `Me' invalid in %sbug61964.php on line %d
63 Notice: finfo_open(): Warning: offset `a' invalid in %sbug61964.php on line %d
65 Notice: finfo_open(): Warning: type `a' invalid in %sbug61964.php on line %d
67 Notice: finfo_open(): Warning: offset `b' invalid in %sbug61964.php on line %d
[all …]
H A Dfinfo_open_variation1.phpt2 Test finfo_open() function : variations in opening
7 /* Prototype : resource finfo_open([int options [, string arg]])
15 echo "*** Testing finfo_open() : variations in opening ***\n";
17 // Calling finfo_open() with different options
18 var_dump( finfo_open( FILEINFO_MIME | FILEINFO_SYMLINK, $magicFile ) );
19 //var_dump( finfo_open( FILEINFO_COMPRESS | FILEINFO_PRESERVE_ATIME, $magicFile ) );
20 var_dump( finfo_open( FILEINFO_DEVICES | FILEINFO_RAW, $magicFile ) );
25 *** Testing finfo_open() : variations in opening ***
H A Dbug71527.phpt2 Bug #71527 Buffer over-write in finfo_open with malformed magic file
11 $finfo = finfo_open(FILEINFO_NONE, dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug71527.magic");
16 Warning: finfo_open(): Failed to load magic database at '%sbug71527.magic'. in %sbug71527.php on li…
H A Dcve-2014-1943.phpt18 $fi = finfo_open(FILEINFO_NONE);
24 $fi = finfo_open(FILEINFO_NONE, $fm);
H A Dbug68996.phpt14 finfo_open(FILEINFO_MIME_TYPE, "\xfc\x63");
22 <b>Warning</b>: finfo_open(): Failed to load magic database at '%s�c'. in <b>%sbug68996.php</b> on…
H A Dprecedural_finfo_in_method.phpt8 $finfo = finfo_open(FILEINFO_MIME);
H A Dbug68731.phpt10 $finfo = finfo_open(FILEINFO_MIME_TYPE);
H A Dbug69320.phpt10 var_dump(finfo_file(finfo_open(FILEINFO_MIME_TYPE), $fname));
H A Dcve-2014-3538.phpt15 $fi = finfo_open(FILEINFO_NONE);
H A Dfinfo_file_stream_001.phpt9 $fp = finfo_open(FILEINFO_MIME_TYPE);
H A Dfinfo_close_basic.phpt17 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
H A Dfinfo_file_001.phpt8 $fp = finfo_open();
H A Dfinfo_file_regex.phpt14 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
H A Dfinfo_file_002.phpt8 $fp = finfo_open(FILEINFO_MIME_TYPE);
H A Dfinfo_file_basic.phpt14 $finfo = finfo_open( FILEINFO_MIME );
H A Dfinfo_set_flags_basic.phpt14 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
H A Dfinfo_buffer_basic.phpt32 $finfo = finfo_open( $option, $magicFile );
H A Dfinfo_close_error.phpt16 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
H A Dfinfo_buffer_error.phpt17 $finfo = finfo_open( FILEINFO_NONE, $magicFile );
/PHP-7.0/ext/fileinfo/
H A Dfileinfo.php10 $res = finfo_open(FILEINFO_MIME); /* return mime type ala mimetype extension */
H A Dphp_fileinfo.h41 PHP_FUNCTION(finfo_open);
H A Dfileinfo.c166 ZEND_ME_MAPPING(finfo, finfo_open, arginfo_finfo_open, ZEND_ACC_PUBLIC)
200 PHP_FE(finfo_open, arginfo_finfo_open)
284 PHP_FUNCTION(finfo_open) in PHP_FUNCTION() argument

Completed in 43 milliseconds

12