Doc #54613 [Bgs]: finfo_open exemple in finfo_file

From: Date: Sat, 30 Apr 2011 12:24:50 +0000
Subject: Doc #54613 [Bgs]: finfo_open exemple in finfo_file
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6323@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 User updated by: ranger dot 2130 at gmail dot com Reported by: ranger dot 2130 at gmail dot com Summary: finfo_open exemple in finfo_file Status: Bogus Type: Documentation Problem Package: Documentation problem -Operating System: +Operating System: Debian 2.6.33.5-xxxx-grs-ipv4-64 -PHP Version: Irrelevant +PHP Version: 5.2.6-1+lenny10 Block user comment: N Private report: N New Comment: Sorry I just tested and I got a warning because FILEINFO_MIME_TYPE is interpreted as a string meanwhile FILEINFO_MIME is not. Previous Comments: ------------------------------------------------------------------------ [2011-04-30 14:05:59] salathe@php.net The second argument to finfo_open() is optional, as described on http://php.net/function.finfo-open ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#6323) next »