Home
last modified time | relevance | path

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

12

/PHP-5.6/ext/fileinfo/tests/
H A Dbug61173.phpt2 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 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.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 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 Dbug68731.phpt5 if (!class_exists('finfo'))
10 $finfo = finfo_open(FILEINFO_MIME_TYPE);
11 echo finfo_buffer($finfo, $buffer);
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.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_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.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.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_open_002.phpt8 $x = new finfo;
9 $x->finfo();
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') );
H A Dfinfo_open_error.phpt23 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 Dbug68398.phpt8 $f = new finfo(FILEINFO_MIME);
H A Dbug67647.phpt10 $fi = new finfo(FILEINFO_MIME_TYPE);
/PHP-5.6/ext/fileinfo/
H A Dfileinfo.c72 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 Dfileinfo.php24 $fi = new finfo(FILEINFO_PRESERVE_ATIME|FILEINFO_SYMLINK|FILEINFO_DEVICES|FILEINFO_COMPRESS);
/PHP-5.6/sapi/apache2handler/
H A Dsapi_apache2.c220 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 Dphp_apache.h41 struct stat_libc finfo; member
43 struct stat finfo; member
/PHP-5.6/sapi/apache2filter/
H A Dsapi_apache2.c184 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 Dpecl12414.phpt15 $finfo=$za->statName($filename);
16 $file_size=$finfo['size'];

Completed in 34 milliseconds

12