Home
last modified time | relevance | path

Searched refs:filetype (Results 1 – 24 of 24) sorted by relevance

/PHP-5.5/ext/standard/tests/file/
H A Dfiletype_error.phpt2 Test filetype() function: Error conditions
6 Prototype: string filetype ( string $filename );
13 print( filetype("/no/such/file/dir") );
16 print( filetype("string") );
17 print( filetype(100) );
20 print( filetype() );
23 print( filetype("file", "file") );
29 Warning: filetype(): Lstat failed for /no/such/file/dir in %s on line %d
31 Warning: filetype(): Lstat failed for string in %s on line %d
33 Warning: filetype(): Lstat failed for 100 in %s on line %d
[all …]
H A Dfiletype_basic.phpt2 Test filetype() function: Basic functionality
6 Prototype: string filetype ( string $filename );
11 echo "*** Testing filetype() with files and dirs ***\n";
13 print( filetype(__FILE__) )."\n";
14 print( filetype(".") )."\n";
19 *** Testing filetype() with files and dirs ***
H A Dfiletype_variation.phpt2 Test filetype() function: Variations
15 Prototype: string filetype ( string $filename );
20 echo "*** Testing filetype() with various types ***\n";
32 print( filetype($file1) )."\n";
33 print( filetype($file2) )."\n";
38 print( filetype($link1 ) )."\n";
42 print( filetype($link2) )."\n";
51 print( filetype("$file_path/filetype_variation") )."\n";
56 print( filetype( $file3) )."\n";
65 *** Testing filetype() with various types ***
H A Dfiletype_variation2.phpt2 Test filetype() function: Check character type
17 Prototype: string filetype ( string $filename );
23 print( filetype("/dev/null") )."\n";
H A Dfiletype_variation3.phpt2 Test filetype() function: Check block device
17 Prototype: string filetype ( string $filename );
23 print( filetype("/dev/ram0") )."\n";
H A D001.phpt63 echo "test.file is " . filetype('test.file') . "\n";
64 echo "test.link is " . filetype('test.link') . "\n";
H A D001-win32.phpt44 echo "test.file is " . filetype('test.file') . "\n";
/PHP-5.5/tests/security/
H A Dopen_basedir_filetype.phpt8 test_open_basedir("filetype");
16 *** Testing open_basedir configuration [filetype] ***
23 Warning: filetype(): open_basedir restriction in effect. File(../bad) is not within the allowed pat…
26 Warning: filetype(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the all…
29 Warning: filetype(): open_basedir restriction in effect. File(..) is not within the allowed path(s)…
32 Warning: filetype(): open_basedir restriction in effect. File(../) is not within the allowed path(s…
35 Warning: filetype(): open_basedir restriction in effect. File(/) is not within the allowed path(s):…
38 Warning: filetype(): open_basedir restriction in effect. File(../bad/.) is not within the allowed p…
41 Warning: filetype(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within th…
47 Warning: filetype(): open_basedir restriction in effect. File(./../.) is not within the allowed pat…
[all …]
/PHP-5.5/ext/zlib/tests/
H A Dzlib_scheme_stat_basic2.phpt24 echo "filetype=";
25 var_dump(filetype($srcFile));
40 filetype=
41 Warning: filetype(): Lstat failed for compress.zlib://%s004.txt.gz in %s on line %d
/PHP-5.5/ext/standard/
H A Dimage.c1227 if ( !filetype) filetype = tmp; in php_getimagetype()
1234 if (!memcmp(filetype, php_sig_gif, 3)) { in php_getimagetype()
1236 } else if (!memcmp(filetype, php_sig_jpg, 3)) { in php_getimagetype()
1238 } else if (!memcmp(filetype, php_sig_png, 3)) { in php_getimagetype()
1243 if (!memcmp(filetype, php_sig_png, 8)) { in php_getimagetype()
1249 } else if (!memcmp(filetype, php_sig_swf, 3)) { in php_getimagetype()
1251 } else if (!memcmp(filetype, php_sig_swc, 3)) { in php_getimagetype()
1253 } else if (!memcmp(filetype, php_sig_psd, 3)) { in php_getimagetype()
1255 } else if (!memcmp(filetype, php_sig_bmp, 2)) { in php_getimagetype()
1266 if (!memcmp(filetype, php_sig_tif_ii, 4)) { in php_getimagetype()
[all …]
H A Dphp_image.h62 PHPAPI int php_getimagetype(php_stream *stream, char *filetype TSRMLS_DC);
H A Dphp_filestat.h38 PHP_FUNCTION(filetype);
H A Dfilestat.c1135 FileFunction(PHP_FN(filetype), FS_TYPE) in FileFunction()
H A Dbasic_functions.c3223 PHP_FE(filetype, arginfo_filetype)
/PHP-5.5/ext/phar/tests/
H A Dstat2.phpt26 var_dump(is_link("testit/link"), filetype("testit/link"), filetype("testit"), is_file("testit/link"…
H A Dstat2_5.3.phpt26 var_dump(is_link("testit/link"), filetype("testit/link"), filetype("testit"), is_file("testit/link"…
H A Dstat.phpt38 echo "filetype\n";
39 var_dump(filetype("dir/file1.txt"));
201 filetype
/PHP-5.5/ext/exif/
H A Dexif.c1503 image_filetype filetype; member
2462 switch(ImageInfo->Thumbnail.filetype) { in exif_thumbnail_build()
2962 ImageInfo->Thumbnail.filetype = ImageInfo->FileType; in exif_process_IFD_TAG()
2965 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_TIFF_MM; in exif_process_IFD_TAG()
2971 if (ImageInfo->Thumbnail.filetype == IMAGE_FILETYPE_UNKNOWN) { in exif_process_IFD_TAG()
2972 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_JPEG; in exif_process_IFD_TAG()
3207 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_JPEG()
3723 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_TIFF()
3936 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_UNKNOWN; in exif_read_file()
4095 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.FileType", ImageInfo.Thumbnail.filetype in PHP_FUNCTION()
[all …]
H A Dtest.txt68 $type = @filetype($root.$path.'/'.$found);
286 $error = "<b style='color: green'>filetype not supported: $types[$type]</b>";
308 $res_exif_read_data = "<b style='color: green'>filetype not supported: $types[$type]</b>";
/PHP-5.5/sapi/apache2handler/
H A Dsapi_apache2.c590 if (r->finfo.filetype == 0) { in php_handler()
595 if (r->finfo.filetype == APR_DIR) { in php_handler()
/PHP-5.5/ext/phar/
H A Dfunc_interceptors.c1082 PHAR_INTERCEPT(filetype); in phar_intercept_functions_init()
1118 PHAR_RELEASE(filetype); in phar_intercept_functions_shutdown()
/PHP-5.5/
H A Drun-tests.php857 if (@filetype($dir) == 'dir') {
H A DNEWS4390 . Fixed bug #54016 (finfo_file() Cannot determine filetype in archives).
/PHP-5.5/ext/fileinfo/tests/
H A Dmagic7273 #>0x460 lelong &0x0000002 (filetype)
11795 >>12 belong x filetype=%ld
16099 # SHARC DSP, MIDI SysEx and RiscOS filetype definitions added by

Completed in 158 milliseconds