com php-src: Remove unused example/test fileinfo.php script: ext/fileinfo/fileinfo.php
| From: | Peter Kokot | Date: | Wed, 08 May 2019 19:58:52 +0000 |
| Subject: | com php-src: Remove unused example/test fileinfo.php script: ext/fileinfo/fileinfo.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106084@lists.php.net to get a copy of this message | ||
Commit: 71acd7a2f7ec59fb3aea16939f33ed3fcc7189c4
Author: Peter Kokot <peterkokot@gmail.com> Mon, 6 May 2019 01:48:50 +0200
Parents: 05350e621b7d14822719195096ced34e2da23dd6
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=71acd7a2f7ec59fb3aea16939f33ed3fcc7189c4
Log:
Remove unused example/test fileinfo.php script
Changed paths:
D ext/fileinfo/fileinfo.php
Diff:
diff --git a/ext/fileinfo/fileinfo.php b/ext/fileinfo/fileinfo.php
deleted file mode 100755
index 11bb6ed..0000000
--- a/ext/fileinfo/fileinfo.php
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env php
-<?php
-if(!extension_loaded('fileinfo')) {
- dl('fileinfo.' . PHP_SHLIB_SUFFIX);
-}
-if(!extension_loaded('fileinfo')) {
- die("fileinfo extension is not available, 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";
-}
-?>