/PHP-5.6/ext/fileinfo/tests/ |
H A D | bug61173.phpt | 2 Bug #61173: Unable to detect error from finfo constructor 5 if (!class_exists('finfo')) 10 $finfo = new finfo(1, '', false); 11 var_dump($finfo); 13 Warning: finfo::finfo() expects at most 2 parameters, 3 given in %s on line %d
|
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.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 | 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 | bug68731.phpt | 5 if (!class_exists('finfo')) 10 $finfo = finfo_open(FILEINFO_MIME_TYPE); 11 echo finfo_buffer($finfo, $buffer);
|
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.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_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.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.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_open_002.phpt | 8 $x = new finfo; 9 $x->finfo();
|
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') );
|
H A D | finfo_open_error.phpt | 23 var_dump( new finfo('foobar') ); 49 Warning: finfo::finfo() expects parameter 1 to be long, string given in %sfinfo_open_error.php on l…
|
H A D | bug68398.phpt | 8 $f = new finfo(FILEINFO_MIME);
|
H A D | bug67647.phpt | 10 $fi = new finfo(FILEINFO_MIME_TYPE);
|
/PHP-5.6/ext/fileinfo/ |
H A D | fileinfo.c | 72 finfo = obj->ptr; \ 73 if (!finfo) { \ 125 ZEND_ARG_INFO(0, finfo) 129 ZEND_ARG_INFO(0, finfo) 138 ZEND_ARG_INFO(0, finfo) 151 ZEND_ARG_INFO(0, finfo) 254 PHP_MINIT(finfo), 341 efree(finfo); in PHP_FUNCTION() 350 efree(finfo); in PHP_FUNCTION() 459 magic = finfo->magic; in _php_finfo_get_type() [all …]
|
H A D | fileinfo.php | 24 $fi = new finfo(FILEINFO_PRESERVE_ATIME|FILEINFO_SYMLINK|FILEINFO_DEVICES|FILEINFO_COMPRESS);
|
/PHP-5.6/sapi/apache2handler/ |
H A D | sapi_apache2.c | 220 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat() 221 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() 225 ctx->finfo.st_atime.tv_sec = apr_time_sec(ctx->r->finfo.atime); in php_apache_sapi_get_stat() 226 ctx->finfo.st_mtime.tv_sec = apr_time_sec(ctx->r->finfo.mtime); 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() 234 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat() [all …]
|
H A D | php_apache.h | 41 struct stat_libc finfo; member 43 struct stat finfo; member
|
/PHP-5.6/sapi/apache2filter/ |
H A D | sapi_apache2.c | 184 ctx->finfo.st_uid = ctx->r->finfo.user; in php_apache_sapi_get_stat() 185 ctx->finfo.st_gid = ctx->r->finfo.group; in php_apache_sapi_get_stat() 186 ctx->finfo.st_dev = ctx->r->finfo.device; in php_apache_sapi_get_stat() 187 ctx->finfo.st_ino = ctx->r->finfo.inode; in php_apache_sapi_get_stat() 189 ctx->finfo.st_atime.tv_sec = apr_time_sec(ctx->r->finfo.atime); in php_apache_sapi_get_stat() 190 ctx->finfo.st_mtime.tv_sec = apr_time_sec(ctx->r->finfo.mtime); in php_apache_sapi_get_stat() 193 ctx->finfo.st_atime = apr_time_sec(ctx->r->finfo.atime); in php_apache_sapi_get_stat() 194 ctx->finfo.st_mtime = apr_time_sec(ctx->r->finfo.mtime); in php_apache_sapi_get_stat() 195 ctx->finfo.st_ctime = apr_time_sec(ctx->r->finfo.ctime); in php_apache_sapi_get_stat() 198 ctx->finfo.st_size = ctx->r->finfo.size; in php_apache_sapi_get_stat() [all …]
|
/PHP-5.6/ext/zip/tests/ |
H A D | pecl12414.phpt | 15 $finfo=$za->statName($filename); 16 $file_size=$finfo['size'];
|