svn: /phpdoc/en/trunk/reference/fileinfo/functions/ finfo-open.xml
| From: | Jakub Vrana | Date: | Thu, 23 Feb 2012 20:47:19 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/fileinfo/functions/ finfo-open.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9659@lists.php.net to get a copy of this message | ||
vrana Thu, 23 Feb 2012 20:47:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323458
Log:
Returns only with procedural style
Changed paths:
U phpdoc/en/trunk/reference/fileinfo/functions/finfo-open.xml
Modified: phpdoc/en/trunk/reference/fileinfo/functions/finfo-open.xml
===================================================================
--- phpdoc/en/trunk/reference/fileinfo/functions/finfo-open.xml 2012-02-23 20:45:11 UTC (rev 323457)
+++ phpdoc/en/trunk/reference/fileinfo/functions/finfo-open.xml 2012-02-23 20:47:19 UTC (rev 323458)
@@ -76,11 +76,6 @@
<?php
$finfo = new finfo(FILEINFO_MIME, "/usr/share/misc/magic"); // return mime type ala
mimetype extension
-if (!$finfo) {
- echo "Opening fileinfo database failed";
- exit();
-}
-
/* get mime-type for a specific file */
$filename = "/usr/local/something.txt";
echo $finfo->file($filename);