Home
last modified time | relevance | path

Searched refs:finfo (Results 1 – 25 of 48) sorted by relevance

12

/PHP-8.0/ext/fileinfo/
H A Dfileinfo.stub.php5 class finfo class
35 * @param resource $finfo
37 function finfo_close($finfo): bool {} argument
40 * @param resource $finfo
42 function finfo_set_flags($finfo, int $flags): bool {} argument
45 * @param resource $finfo
48 function finfo_file($finfo, string $filename, int $flags = FILEINFO_NONE, $context = null): string|… argument
51 * @param resource $finfo
54 function finfo_buffer($finfo, string $string, int $flags = FILEINFO_NONE, $context = null): string|… argument
H A Dfileinfo.c73 finfo = obj->ptr; \
74 if (!finfo) { \
132 PHP_MINIT_FUNCTION(finfo) in PHP_MINIT_FUNCTION() argument
178 PHP_MINIT(finfo),
213 php_fileinfo *finfo; in PHP_FUNCTION() local
265 efree(finfo); in PHP_FUNCTION()
279 efree(finfo); in PHP_FUNCTION()
301 php_fileinfo *finfo; in PHP_FUNCTION() local
322 php_fileinfo *finfo; in PHP_FUNCTION() local
397 magic = finfo->magic; in _php_finfo_get_type()
[all …]
H A Dfileinfo_arginfo.h10 ZEND_ARG_INFO(0, finfo)
14 ZEND_ARG_INFO(0, finfo)
19 ZEND_ARG_INFO(0, finfo)
26 ZEND_ARG_INFO(0, finfo)
/PHP-8.0/ext/fileinfo/tests/
H A Dfinfo_close_basic.phpt11 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
12 var_dump( $finfo );
15 var_dump( finfo_close($finfo) );
17 $finfo = new finfo( FILEINFO_MIME, $magicFile );
18 var_dump( $finfo );
19 unset( $finfo );
26 object(finfo)#%d (%d) {
H A Dclone_serialize.phpt2 Cloning and serializing finfo is not supported
6 $finfo = new finfo;
7 var_dump($finfo->buffer("Test string"));
9 $finfo2 = clone $finfo;
15 $finfo3 = unserialize(serialize($finfo));
24 Trying to clone an uncloneable object of class finfo
25 Serialization of 'finfo' is not allowed
H A Dfinfo_set_flags_basic-mb.phpt8 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
12 var_dump( finfo_set_flags( $finfo, FILEINFO_NONE ) );
13 var_dump( finfo_set_flags( $finfo, FILEINFO_SYMLINK ) );
15 finfo_close( $finfo );
18 $finfo = new finfo( FILEINFO_NONE, $magicFile );
19 var_dump( $finfo->set_flags( FILEINFO_MIME ) );
H A Dfinfo_set_flags_basic.phpt8 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
12 var_dump( finfo_set_flags( $finfo, FILEINFO_NONE ) );
13 var_dump( finfo_set_flags( $finfo, FILEINFO_SYMLINK ) );
15 finfo_close( $finfo );
18 $finfo = new finfo( FILEINFO_NONE, $magicFile );
19 var_dump( $finfo->set_flags( FILEINFO_MIME ) );
H A Dbug61173.phpt2 Bug #61173: Unable to detect error from finfo constructor
5 if (!class_exists('finfo'))
11 $finfo = new finfo(1, '', false);
12 var_dump($finfo);
18 finfo::__construct() expects at most 2 arguments, 3 given
H A Dbug69107.phpt2 Bug #69107 (finfo no longer detects PHP files)
9 $finfo = new finfo(FILEINFO_MIME_TYPE);
11 var_dump($finfo->buffer("<?php\nclass A{}"));
12 var_dump($finfo->buffer("<?php class A{}"));
13 var_dump($finfo->buffer("<?php\tclass A{}"));
14 var_dump($finfo->buffer("<?php\n\rclass A{}"));
H A Dfinfo_file_basic.phpt8 $finfo = finfo_open( FILEINFO_MIME );
13 var_dump( finfo_file( $finfo, __FILE__) );
14 var_dump( finfo_file( $finfo, __FILE__, FILEINFO_CONTINUE ) );
15 var_dump( finfo_file( $finfo, $magicFile ) );
17 var_dump( finfo_file( $finfo, $magicFile.chr(0).$magicFile) );
28 finfo_file(): Argument #1 ($finfo) must not contain any null bytes
H A Dbug57547.phpt5 if (!class_exists('finfo'))
13 $finfo = new finfo(FILEINFO_MIME);
14 var_dump($finfo->file($filename));
16 $finfo2 = new finfo();
H A Dbug68731.phpt5 if (!class_exists('finfo'))
10 $finfo = finfo_open(FILEINFO_MIME_TYPE);
11 echo finfo_buffer($finfo, $buffer);
H A Dfinfo_open_basic.phpt21 // OO interface to finfo
22 var_dump( new finfo( FILEINFO_MIME, $magicFile ) );
23 var_dump( new finfo() );
35 object(finfo)#%d (%d) {
37 object(finfo)#%d (%d) {
H A Dbug79756.phpt10 $finfo = finfo_open(FILEINFO_MIME);
11 $mime = finfo_file($finfo, $filename);
12 finfo_close($finfo);
H A Dprecedural_finfo_in_method.phpt2 Using procedural finfo API in a method
10 $finfo = finfo_open(FILEINFO_MIME);
11 var_dump(finfo_file($finfo, __FILE__));
H A Dbug71434.phpt13 $finfo = new finfo(FILEINFO_MIME_TYPE);
14 echo $finfo->buffer($a) . "\n";
H A Dfinfo_phpinfo_basic.phpt2 Test finfo extension : loading into phpinfo()
8 echo "*** Testing finfo extension : loading info phpinfo() ***\n";
18 *** Testing finfo extension : loading info phpinfo() ***
H A Dbug79283.phpt14 $finfo = new finfo(FILEINFO_NONE, $magic_file);
15 var_dump($finfo->buffer("buffer\n"));
H A Dbug71527.phpt5 if (!class_exists('finfo'))
11 $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527.magic");
12 var_dump($finfo);
H A Dbug71527-mb.phpt5 if (!class_exists('finfo'))
11 … $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527私はガラスを食べられます.magic");
12 var_dump($finfo);
H A Dbug78987.phpt9 $finfo = new finfo(FILEINFO_MIME_TYPE);
26 $finfo->buffer($content);
H A Dbug68819_002.phpt20 $finfo = new finfo();
21 $type = $finfo->buffer($string);
H A Dfinfo_file_regex.phpt14 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
20 var_dump( finfo_file( $finfo, $file ) );
21 var_dump( finfo_file( $finfo, $file, FILEINFO_CONTINUE ) );
H A Dfinfo_extension_flag.phpt5 if (!class_exists('finfo'))
10 $f = new finfo;
/PHP-8.0/sapi/apache2handler/
H A Dsapi_apache2.c216 ctx->finfo.st_uid = 0; in php_apache_sapi_get_stat()
219 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat()
220 ctx->finfo.st_gid = ctx->r->finfo.group; in php_apache_sapi_get_stat()
222 ctx->finfo.st_dev = ctx->r->finfo.device; in php_apache_sapi_get_stat()
223 ctx->finfo.st_ino = ctx->r->finfo.inode; in php_apache_sapi_get_stat()
224 ctx->finfo.st_atime = apr_time_sec(ctx->r->finfo.atime); in php_apache_sapi_get_stat()
225 ctx->finfo.st_mtime = apr_time_sec(ctx->r->finfo.mtime); in php_apache_sapi_get_stat()
226 ctx->finfo.st_ctime = apr_time_sec(ctx->r->finfo.ctime); in php_apache_sapi_get_stat()
227 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
228 ctx->finfo.st_nlink = ctx->r->finfo.nlink; in php_apache_sapi_get_stat()
[all …]

Completed in 32 milliseconds

12