/PHP-8.0/ext/fileinfo/tests/ |
H A D | finfo_open_001.phpt | 2 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 30 Warning: finfo_open(): Failed to load magic database at "%s123" in %s on line %d 37 Warning: finfo_open(): Failed to load magic database at "%s1" in %s on line %d [all …]
|
H A D | finfo_open_basic.phpt | 2 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 D | finfo_open_variation1.phpt | 2 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 D | finfo_open_error.phpt | 2 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 D | bug61964.phpt | 2 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); 51 Warning: finfo_open(): offset `string' invalid in %sbug61964.php on line %d 53 Warning: finfo_open(): offset ` Core' invalid in %sbug61964.php on line %d 55 Warning: finfo_open(): offset ` Me' invalid in %sbug61964.php on line %d 57 Warning: finfo_open(): offset `a' invalid in %sbug61964.php on line %d [all …]
|
H A D | bug61964-mb.phpt | 2 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); 51 Warning: finfo_open(): offset `string' invalid in %sbug61964-mb.php on line %d 53 Warning: finfo_open(): offset ` Core' invalid in %sbug61964-mb.php on line %d 55 Warning: finfo_open(): offset ` Me' invalid in %sbug61964-mb.php on line %d 57 Warning: finfo_open(): offset `a' invalid in %sbug61964-mb.php on line %d [all …]
|
H A D | bug77961.phpt | 2 Bug #77961 (finfo_open crafted magic parsing SIGABRT) 9 finfo_open(FILEINFO_NONE, __DIR__ . '/bug77961.magic'); 12 Warning: finfo_open(): Expected numeric type got `indirect' in %s on line %d
|
H A D | bug68996.phpt | 9 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 "%s�c" in <b>%s</b> on li…
|
H A D | bug71527.phpt | 2 Bug #71527 Buffer over-write in finfo_open with malformed magic file 11 $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527.magic"); 15 Warning: finfo_open(): Failed to load magic database at "%sbug71527.magic" in %sbug71527.php on lin…
|
H A D | bug71527-mb.phpt | 2 Bug #71527 Buffer over-write in finfo_open with malformed magic file 11 … $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527私はガラスを食べられます.magic"); 15 Warning: finfo_open(): Failed to load magic database at "%sbug71527私はガラスを食べられます.magic" in %sbug7152…
|
H A D | cve-2014-1943-mb.phpt | 18 $fi = finfo_open(FILEINFO_NONE); 24 $fi = finfo_open(FILEINFO_NONE, $fm);
|
H A D | cve-2014-1943.phpt | 18 $fi = finfo_open(FILEINFO_NONE); 24 $fi = finfo_open(FILEINFO_NONE, $fm);
|
H A D | bug68731.phpt | 10 $finfo = finfo_open(FILEINFO_MIME_TYPE);
|
H A D | bug79756.phpt | 10 $finfo = finfo_open(FILEINFO_MIME);
|
H A D | precedural_finfo_in_method.phpt | 10 $finfo = finfo_open(FILEINFO_MIME);
|
H A D | bug69320.phpt | 10 var_dump(finfo_file(finfo_open(FILEINFO_MIME_TYPE), $fname));
|
H A D | finfo_set_flags_basic-mb.phpt | 8 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
|
H A D | finfo_set_flags_basic.phpt | 8 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
|
H A D | finfo_close_basic.phpt | 11 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
|
H A D | finfo_file_stream_001.phpt | 9 $fp = finfo_open(FILEINFO_MIME_TYPE);
|
H A D | cve-2014-3538-mb.phpt | 18 $fi = finfo_open(FILEINFO_NONE);
|
H A D | cve-2014-3538.phpt | 18 $fi = finfo_open(FILEINFO_NONE);
|
H A D | finfo_file_regex.phpt | 14 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
|
/PHP-8.0/ext/fileinfo/ |
H A D | fileinfo_arginfo.h | 55 ZEND_FUNCTION(finfo_open); 64 ZEND_FE(finfo_open, arginfo_finfo_open) 75 ZEND_ME_MAPPING(__construct, finfo_open, arginfo_class_finfo___construct, ZEND_ACC_PUBLIC)
|
H A D | fileinfo.stub.php | 32 function finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null) {} function
|