/PHP-7.1/ext/fileinfo/tests/ |
H A D | bug61173.phpt | 2 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 D | finfo_close_basic.phpt | 7 /* 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 D | finfo_set_flags_basic-mb.phpt | 7 /* 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 D | finfo_set_flags_basic.phpt | 7 /* 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 D | bug69107.phpt | 2 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 D | bug57547.phpt | 5 if (!class_exists('finfo')) 13 $finfo = new finfo(FILEINFO_MIME); 14 var_dump($finfo->file($filename)); 16 $finfo2 = new finfo();
|
H A D | finfo_file_basic.phpt | 7 /* 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 D | precedural_finfo_in_method.phpt | 2 Using procedural finfo API in a method 8 $finfo = finfo_open(FILEINFO_MIME); 9 var_dump(finfo_file($finfo, __FILE__));
|
H A D | bug68731.phpt | 5 if (!class_exists('finfo')) 10 $finfo = finfo_open(FILEINFO_MIME_TYPE); 11 echo finfo_buffer($finfo, $buffer);
|
H A D | bug71434.phpt | 13 $finfo = new finfo(FILEINFO_MIME_TYPE); 14 echo $finfo->buffer($a) . "\n";
|
H A D | finfo_phpinfo_basic.phpt | 2 Test finfo extension : loading into phpinfo() 8 echo "*** Testing finfo extension : loading info phpinfo() ***\n"; 19 *** Testing finfo extension : loading info phpinfo() ***
|
H A D | finfo_open_basic.phpt | 27 // 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 D | bug68819_002.phpt | 20 $finfo = new finfo(); 21 $type = $finfo->buffer($string);
|
H A D | bug71527-mb.phpt | 5 if (!class_exists('finfo')) 11 …$finfo = finfo_open(FILEINFO_NONE, dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug71527私はガラスを食べられます… 12 $info = finfo_file($finfo, __FILE__);
|
H A D | bug71527.phpt | 5 if (!class_exists('finfo')) 11 $finfo = finfo_open(FILEINFO_NONE, dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug71527.magic"); 12 $info = finfo_file($finfo, __FILE__);
|
H A D | finfo_open_002.phpt | 8 $x = new finfo; 9 $x->finfo();
|
H A D | finfo_file_regex.phpt | 14 $finfo = finfo_open( FILEINFO_MIME, $magicFile ); 20 var_dump( finfo_file( $finfo, $file ) ); 21 var_dump( finfo_file( $finfo, $file, FILEINFO_CONTINUE ) );
|
H A D | finfo_buffer_basic-mb.phpt | 7 /* 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 D | finfo_buffer_basic.phpt | 7 /* 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 D | finfo_buffer_variation1-mb.phpt | 7 /* 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 D | finfo_buffer_variation1.phpt | 7 /* 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 D | finfo_buffer_error.phpt | 7 /* 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 D | finfo_close_error.phpt | 7 /* 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 D | fileinfo.c | 75 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 D | sapi_apache2.c | 221 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 …]
|