#49591 [Asn->Bgs]: Fileinfo example code uses wrong constant

From: Date: Tue, 22 Sep 2009 09:39:52 +0000
Subject: #49591 [Asn->Bgs]: Fileinfo example code uses wrong constant
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2802@lists.php.net to get a copy of this message
ID: 49591 Updated by: vrana@php.net Reported By: mike at silverorange dot com -Status: Assigned +Status: Bogus Bug Type: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant Assigned To: vrana New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Kalle is right. Previous Comments: ------------------------------------------------------------------------ [2009-09-20 18:12:25] kalle@php.net Theres a difference between FILEINFO_MIME and FILEINFO_MIME_TYPE: * FILEINFO_MIME returns the mimetype * FILEINFO_MIME_TYPE returns the type and mime encoding as per RFC 2045 I think its intended usage of FILEINFO_MIME_TYPE, but I'll assign it to the original author of the example to clarify this. ------------------------------------------------------------------------ [2009-09-18 15:15:59] mike at silverorange dot com Description: ------------ On this page http://php.net/manual/en/function.finfo-file.php the example uses the wrong constant. The constant is FILEINFO_MIME, not FILEINFO_MIME_TYPE. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49591&edit=1

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