/php-src/ext/fileinfo/tests/ |
H A D | finfo_open_basic.phpt | 21 // 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 D | finfo_close_basic.phpt | 11 $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 D | clone_serialize.phpt | 2 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 D | finfo_set_flags_basic-mb.phpt | 8 $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 D | finfo_set_flags_basic.phpt | 8 $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 D | bug69107.phpt | 2 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 D | bug71434.phpt | 13 $finfo = new finfo(FILEINFO_MIME_TYPE); 14 echo $finfo->buffer($a) . "\n"; 15 $finfo = new finfo(); 16 echo $finfo->buffer($a) . "\n";
|
H A D | bug61173.phpt | 2 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 D | finfo_open_001.phpt | 19 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 D | finfo_file_basic.phpt | 8 $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 D | bug57547.phpt | 11 $finfo = new finfo(FILEINFO_MIME); 12 var_dump($finfo->file($filename)); 14 $finfo2 = new finfo();
|
H A D | bug79756.phpt | 8 $finfo = finfo_open(FILEINFO_MIME); 9 $mime = finfo_file($finfo, $filename); 10 finfo_close($finfo);
|
H A D | precedural_finfo_in_method.phpt | 2 Using procedural finfo API in a method 10 $finfo = finfo_open(FILEINFO_MIME); 11 var_dump(finfo_file($finfo, __FILE__));
|
H A D | finfo_phpinfo_basic.phpt | 2 Test finfo extension : loading into phpinfo() 8 echo "*** Testing finfo extension : loading info phpinfo() ***\n"; 18 *** Testing finfo extension : loading info phpinfo() ***
|
H A D | bug79283.phpt | 12 $finfo = new finfo(FILEINFO_NONE, $magic_file); 13 var_dump($finfo->buffer("buffer\n"));
|
H A D | bug68819_002.phpt | 20 $finfo = new finfo(); 21 $type = $finfo->buffer($string);
|
H A D | finfo_upstream.phpt | 15 $finfo = finfo_open(FILEINFO_NONE, file_exists($mp) ? $mp : NULL); 16 $i = finfo_file( $finfo, $p); 21 finfo_close($finfo);
|
H A D | finfo_file_regex.phpt | 13 $finfo = finfo_open( FILEINFO_MIME, $magicFile ); 19 var_dump( finfo_file( $finfo, $file ) ); 20 var_dump( finfo_file( $finfo, $file, FILEINFO_CONTINUE ) );
|
H A D | bug68731.phpt | 8 $finfo = finfo_open(FILEINFO_MIME_TYPE); 9 echo finfo_buffer($finfo, $buffer);
|
H A D | gh13344.phpt | 2 GH-13344 (finfo::buffer(): Failed identify data 0:(null)) 8 $mime_type = (new finfo(FILEINFO_MIME))->buffer($data);
|
H A D | bug71527.phpt | 9 $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527.magic"); 10 var_dump($finfo);
|
/php-src/ext/fileinfo/ |
H A D | fileinfo.stub.php | 66 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 D | fileinfo.c | 62 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 D | fileinfo_arginfo.h | 4 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 D | sapi_apache2.c | 221 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 …]
|