Doc #54613 [Opn->Bgs]: finfo_open exemple in finfo_file
| From: | salathe@php.net | Date: | Sat, 30 Apr 2011 12:05:59 +0000 |
| Subject: | Doc #54613 [Opn->Bgs]: finfo_open exemple in finfo_file | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6321@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54613&edit=1
ID: 54613
Updated by: salathe@php.net
Reported by: ranger dot 2130 at gmail dot com
Summary: finfo_open exemple in finfo_file
-Status: Open
+Status: Bogus
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
The second argument to finfo_open() is optional, as described on
http://php.net/function.finfo-open
Previous Comments:
------------------------------------------------------------------------
[2011-04-27 17:19:54] ranger dot 2130 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.finfo-file#Exemples
---
$finfo = finfo_open(FILEINFO_MIME_TYPE); // Retourne le type mime à la
extension
mimetype
or here http://www.php.net/function.finfo-open
: $finfo =
finfo_open(FILEINFO_MIME, "/usr/share/misc/magic"); // Retourne le type
mime
So arg #2 is missing in finfo-file man page
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54613&edit=1