|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49591 Fileinfo example code uses wrong constant
Submitted: 2009-09-18 15:15 UTC Modified: 2009-09-22 09:39 UTC
From: mike at silverorange dot com Assigned: vrana (profile)
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2009-09-18 15:15 UTC] mike at silverorange dot com
On this page the example uses the wrong constant.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-20 18:12 UTC]
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-22 09:39 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Kalle is right.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jan 23 18:01:26 2021 UTC