Home
last modified time | relevance | path

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

12

/php-src/ext/fileinfo/tests/
H A Dfinfo_open_basic.phpt21 // OO interface to finfo
23 var_dump( new finfo() );
28 object(finfo)#%d (0) {
30 object(finfo)#%d (0) {
32 object(finfo)#%d (0) {
34 object(finfo)#%d (0) {
36 object(finfo)#%d (0) {
38 object(finfo)#%d (0) {
40 object(finfo)#%d (0) {
42 object(finfo)#%d (0) {
[all …]
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 );
24 object(finfo)#%d (0) {
27 object(finfo)#%d (%d) {
H A Dclone_serialize.phpt2 Cloning and serializing finfo is not supported
8 $finfo = new finfo;
9 var_dump($finfo->buffer("Test string"));
11 $finfo2 = clone $finfo;
17 $finfo3 = unserialize(serialize($finfo));
26 Trying to clone an uncloneable object of class finfo
27 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 Dbug69107.phpt2 Bug #69107 (finfo no longer detects PHP files)
7 $finfo = new finfo(FILEINFO_MIME_TYPE);
9 var_dump($finfo->buffer("<?php\nclass A{}"));
10 var_dump($finfo->buffer("<?php class A{}"));
11 var_dump($finfo->buffer("<?php\tclass A{}"));
12 var_dump($finfo->buffer("<?php\n\rclass A{}"));
H A Dbug71434.phpt13 $finfo = new finfo(FILEINFO_MIME_TYPE);
14 echo $finfo->buffer($a) . "\n";
15 $finfo = new finfo();
16 echo $finfo->buffer($a) . "\n";
H A Dbug61173.phpt2 Bug #61173: Unable to detect error from finfo constructor
9 $finfo = new finfo(1, '', false);
10 var_dump($finfo);
16 finfo::__construct() expects at most 2 arguments, 3 given
H A Dfinfo_open_001.phpt19 var_dump($obj = new finfo(FILEINFO_MIME, NULL));
20 var_dump($obj = new finfo(FILEINFO_MIME, ''));
23 var_dump($obj = new finfo(FILEINFO_MIME, 123));
29 var_dump($obj = new finfo(FILEINFO_MIME, 1.0));
35 var_dump($obj = new finfo(FILEINFO_MIME, '/foo/bar/inexistent'));
42 object(finfo)#%d (0) {
44 object(finfo)#%d (0) {
67 object(finfo)#%d (%d) {
69 object(finfo)#%d (%d) {
71 finfo::__construct(%s123): Failed to open stream: No such file or directory
[all …]
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) );
H A Dbug57547.phpt11 $finfo = new finfo(FILEINFO_MIME);
12 var_dump($finfo->file($filename));
14 $finfo2 = new finfo();
H A Dbug79756.phpt8 $finfo = finfo_open(FILEINFO_MIME);
9 $mime = finfo_file($finfo, $filename);
10 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 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.phpt12 $finfo = new finfo(FILEINFO_NONE, $magic_file);
13 var_dump($finfo->buffer("buffer\n"));
H A Dbug68819_002.phpt20 $finfo = new finfo();
21 $type = $finfo->buffer($string);
H A Dfinfo_upstream.phpt15 $finfo = finfo_open(FILEINFO_NONE, file_exists($mp) ? $mp : NULL);
16 $i = finfo_file( $finfo, $p);
21 finfo_close($finfo);
H A Dfinfo_file_regex.phpt13 $finfo = finfo_open( FILEINFO_MIME, $magicFile );
19 var_dump( finfo_file( $finfo, $file ) );
20 var_dump( finfo_file( $finfo, $file, FILEINFO_CONTINUE ) );
H A Dbug68731.phpt8 $finfo = finfo_open(FILEINFO_MIME_TYPE);
9 echo finfo_buffer($finfo, $buffer);
H A Dgh13344.phpt2 GH-13344 (finfo::buffer(): Failed identify data 0:(null))
8 $mime_type = (new finfo(FILEINFO_MIME))->buffer($data);
H A Dbug71527.phpt9 $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527.magic");
10 var_dump($finfo);
/php-src/ext/fileinfo/
H A Dfileinfo.stub.php66 class finfo class
93 function finfo_open(int $flags = FILEINFO_NONE, ?string $magic_database = null): finfo|false {}
95 function finfo_close(finfo $finfo): bool {} argument
97 function finfo_set_flags(finfo $finfo, int $flags): true {} argument
103 function finfo_file(finfo $finfo, string $filename, int $flags = FILEINFO_NONE, $context = null): s… argument
109 function finfo_buffer(finfo $finfo, string $string, int $flags = FILEINFO_NONE, $context = null): s… argument
H A Dfileinfo.c62 finfo = obj->ptr; \
63 if (!finfo) { \
106 PHP_MINIT_FUNCTION(finfo) in PHP_MINIT_FUNCTION() argument
129 PHP_MINIT(finfo),
164 php_fileinfo *finfo; in PHP_FUNCTION() local
216 efree(finfo); in PHP_FUNCTION()
230 efree(finfo); in PHP_FUNCTION()
244 obj->ptr = finfo; in PHP_FUNCTION()
248 obj->ptr = finfo; in PHP_FUNCTION()
271 php_fileinfo *finfo; in PHP_FUNCTION() local
[all …]
H A Dfileinfo_arginfo.h4 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_finfo_open, 0, 0, finfo, MAY_BE_FALSE)
10 ZEND_ARG_OBJ_INFO(0, finfo, finfo, 0)
14 ZEND_ARG_OBJ_INFO(0, finfo, finfo, 0)
19 ZEND_ARG_OBJ_INFO(0, finfo, finfo, 0)
26 ZEND_ARG_OBJ_INFO(0, finfo, finfo, 0)
/php-src/sapi/apache2handler/
H A Dsapi_apache2.c221 ctx->finfo.st_uid = 0; in php_apache_sapi_get_stat()
224 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat()
225 ctx->finfo.st_gid = ctx->r->finfo.group; in php_apache_sapi_get_stat()
227 ctx->finfo.st_dev = ctx->r->finfo.device; in php_apache_sapi_get_stat()
228 ctx->finfo.st_ino = ctx->r->finfo.inode; in php_apache_sapi_get_stat()
229 ctx->finfo.st_atime = apr_time_sec(ctx->r->finfo.atime); in php_apache_sapi_get_stat()
230 ctx->finfo.st_mtime = apr_time_sec(ctx->r->finfo.mtime); in php_apache_sapi_get_stat()
231 ctx->finfo.st_ctime = apr_time_sec(ctx->r->finfo.ctime); in php_apache_sapi_get_stat()
232 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat()
233 ctx->finfo.st_nlink = ctx->r->finfo.nlink; in php_apache_sapi_get_stat()
[all …]

Completed in 30 milliseconds

12