Home
last modified time | relevance | path

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

12

/PHP-7.1/ext/fileinfo/tests/
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);
17 finfo::finfo() expects at most 2 parameters, 3 given
H A Dfinfo_close_basic.phpt7 /* Prototype : resource finfo_close(resource finfo)
17 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
18 var_dump( $finfo );
21 var_dump( finfo_close($finfo) );
23 $finfo = new finfo( FILEINFO_MIME, $magicFile );
24 var_dump( $finfo );
25 unset( $finfo );
33 object(finfo)#%d (%d) {
H A Dfinfo_set_flags_basic-mb.phpt7 /* Prototype : bool finfo_set_flags(resource finfo, int options)
14 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
18 var_dump( finfo_set_flags( $finfo, FILEINFO_NONE ) );
19 var_dump( finfo_set_flags( $finfo, FILEINFO_SYMLINK ) );
22 finfo_close( $finfo );
25 $finfo = new finfo( FILEINFO_NONE, $magicFile );
26 var_dump( $finfo->set_flags( FILEINFO_MIME ) );
27 var_dump( $finfo->set_flags() );
40 Warning: finfo::set_flags() expects exactly 1 parameter, 0 given in %s on line %d
H A Dfinfo_set_flags_basic.phpt7 /* Prototype : bool finfo_set_flags(resource finfo, int options)
14 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
18 var_dump( finfo_set_flags( $finfo, FILEINFO_NONE ) );
19 var_dump( finfo_set_flags( $finfo, FILEINFO_SYMLINK ) );
22 finfo_close( $finfo );
25 $finfo = new finfo( FILEINFO_NONE, $magicFile );
26 var_dump( $finfo->set_flags( FILEINFO_MIME ) );
27 var_dump( $finfo->set_flags() );
40 Warning: finfo::set_flags() expects exactly 1 parameter, 0 given in %s on line %d
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 Dbug57547.phpt5 if (!class_exists('finfo'))
13 $finfo = new finfo(FILEINFO_MIME);
14 var_dump($finfo->file($filename));
16 $finfo2 = new finfo();
H A Dfinfo_file_basic.phpt7 /* Prototype : string finfo_file(resource finfo, char *file_name [, int options [, resource contex…
14 $finfo = finfo_open( FILEINFO_MIME );
19 var_dump( finfo_file( $finfo, __FILE__) );
20 var_dump( finfo_file( $finfo, __FILE__, FILEINFO_CONTINUE ) );
21 var_dump( finfo_file( $finfo, $magicFile ) );
22 var_dump( finfo_file( $finfo, $magicFile.chr(0).$magicFile) );
H A Dprecedural_finfo_in_method.phpt2 Using procedural finfo API in a method
8 $finfo = finfo_open(FILEINFO_MIME);
9 var_dump(finfo_file($finfo, __FILE__));
H A Dbug68731.phpt5 if (!class_exists('finfo'))
10 $finfo = finfo_open(FILEINFO_MIME_TYPE);
11 echo finfo_buffer($finfo, $buffer);
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";
19 *** Testing finfo extension : loading info phpinfo() ***
H A Dfinfo_open_basic.phpt27 // OO inteface to finfo
28 var_dump( new finfo( FILEINFO_MIME, $magicFile ) );
29 var_dump( new finfo() );
42 object(finfo)#%d (%d) {
44 object(finfo)#%d (%d) {
H A Dbug68819_002.phpt20 $finfo = new finfo();
21 $type = $finfo->buffer($string);
H A Dbug71527-mb.phpt5 if (!class_exists('finfo'))
11 …$finfo = finfo_open(FILEINFO_NONE, dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug71527私はガラスを食べられます…
12 $info = finfo_file($finfo, __FILE__);
H A Dbug71527.phpt5 if (!class_exists('finfo'))
11 $finfo = finfo_open(FILEINFO_NONE, dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug71527.magic");
12 $info = finfo_file($finfo, __FILE__);
H A Dfinfo_open_002.phpt8 $x = new finfo;
9 $x->finfo();
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_buffer_basic-mb.phpt7 /* Prototype : string finfo_buffer(resource finfo, char *string [, int options [, resource context…
32 $finfo = finfo_open( $option, $magicFile );
34 var_dump( finfo_buffer( $finfo, $string, $option ) );
36 finfo_close( $finfo );
H A Dfinfo_buffer_basic.phpt7 /* Prototype : string finfo_buffer(resource finfo, char *string [, int options [, resource context…
32 $finfo = finfo_open( $option, $magicFile );
34 var_dump( finfo_buffer( $finfo, $string, $option ) );
36 finfo_close( $finfo );
H A Dfinfo_buffer_variation1-mb.phpt7 /* Prototype : string finfo_buffer(resource finfo, char *string [, int options [, resource context…
32 $finfo = new finfo( $option, $magicFile );
34 var_dump( $finfo->buffer( $string, $option ) );
H A Dfinfo_buffer_variation1.phpt7 /* Prototype : string finfo_buffer(resource finfo, char *string [, int options [, resource context…
32 $finfo = new finfo( $option, $magicFile );
34 var_dump( $finfo->buffer( $string, $option ) );
H A Dfinfo_buffer_error.phpt7 /* Prototype : string finfo_buffer(resource finfo, char *string [, int options [, resource context…
17 $finfo = finfo_open( FILEINFO_NONE, $magicFile );
24 var_dump( finfo_buffer($finfo, "foobar", FILEINFO_MIME, $context, $extra_arg) );
29 var_dump( finfo_buffer($finfo) );
H A Dfinfo_close_error.phpt7 /* Prototype : resource finfo_close(resource finfo)
16 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
23 var_dump( finfo_close( $finfo, '10') );
/PHP-7.1/ext/fileinfo/
H A Dfileinfo.c75 finfo = obj->ptr; \
76 if (!finfo) { \
120 ZEND_ARG_INFO(0, finfo)
124 ZEND_ARG_INFO(0, finfo)
133 ZEND_ARG_INFO(0, finfo)
251 PHP_MINIT(finfo),
289 php_fileinfo *finfo; in PHP_FUNCTION() local
342 efree(finfo); in PHP_FUNCTION()
356 efree(finfo); in PHP_FUNCTION()
379 php_fileinfo *finfo; in PHP_FUNCTION() local
[all …]
/PHP-7.1/sapi/apache2handler/
H A Dsapi_apache2.c221 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat()
222 ctx->finfo.st_gid = ctx->r->finfo.group; in php_apache_sapi_get_stat()
224 ctx->finfo.st_dev = ctx->r->finfo.device; in php_apache_sapi_get_stat()
225 ctx->finfo.st_ino = ctx->r->finfo.inode; in php_apache_sapi_get_stat()
227 ctx->finfo.st_atime.tv_sec = apr_time_sec(ctx->r->finfo.atime); in php_apache_sapi_get_stat()
228 ctx->finfo.st_mtime.tv_sec = apr_time_sec(ctx->r->finfo.mtime); in php_apache_sapi_get_stat()
231 ctx->finfo.st_atime = apr_time_sec(ctx->r->finfo.atime); in php_apache_sapi_get_stat()
232 ctx->finfo.st_mtime = apr_time_sec(ctx->r->finfo.mtime); in php_apache_sapi_get_stat()
233 ctx->finfo.st_ctime = apr_time_sec(ctx->r->finfo.ctime); in php_apache_sapi_get_stat()
236 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
[all …]

Completed in 28 milliseconds

12