diff options
| author | SVN Migration <svn@php.net> | 2004-05-27 13:04:15 +0000 |
|---|---|---|
| committer | SVN Migration <svn@php.net> | 2004-05-27 13:04:15 +0000 |
| commit | 3fa7d9636a78b4a07ff6cdbefacacf4cfdd958c1 (patch) | |
| tree | 490bf43b43bef6fd1ce3fed3988cc429f74e1ba3 /ext/fileinfo/fileinfo.php | |
| parent | b369925372b51b0b9566476d3d56de0331d70ce1 (diff) | |
| download | php-git-php-5.0.0RC3RC1.tar.gz | |
This commit was manufactured by cvs2svn to create tag 'php_5_0_0RC3RC1'.php-5.0.0RC3RC1
Diffstat (limited to 'ext/fileinfo/fileinfo.php')
| -rw-r--r-- | ext/fileinfo/fileinfo.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ext/fileinfo/fileinfo.php b/ext/fileinfo/fileinfo.php deleted file mode 100644 index 1ee9efbeb8..0000000000 --- a/ext/fileinfo/fileinfo.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php -if(!extension_loaded('fileinfo')) { - dl('fileinfo.' . PHP_SHLIB_SUFFIX); -} -if(!extension_loaded('fileinfo')) { - die("fileinfo extension is not avaliable, please compile it.\n"); -} - -// normal operation -$res = finfo_open(FILEINFO_MIME); /* return mime type ala mimetype extension */ -$files = glob("*"); -foreach ($files as $file) { - echo finfo_file($res, $file) . "\n"; -} -finfo_close($res); - -// OO mode -/* - * FILEINFO_PRESERVE_ATIME - if possible preserve the original access time - * FILEINFO_SYMLINK - follow symlinks - * FILEINFO_DEVICES - look at the contents of blocks or character special devices - * FILEINFO_COMPRESS - decompress compressed files - */ -$fi = new finfo(FILEINFO_PRESERVE_ATIME|FILEINFO_SYMLINK|FILEINFO_DEVICES|FILEINFO_COMPRESS); -$files = glob("*"); -foreach ($files as $file) { - echo $fi->buffer(file_get_contents($file)) . "\n"; -} -?> |
