php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60679 FILEINFO_MIME_TYPE is not defined as a constant
Submitted: 2012-01-07 11:10 UTC Modified: 2012-03-03 19:43 UTC
From: tomse at tomse dot dk Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.8 OS: FreeBSD 8.2 i386
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tomse at tomse dot dk
New email:
PHP Version: OS:

 

 [2012-01-07 11:10 UTC] tomse at tomse dot dk
Description:
------------
FILEINFO_MIME_TYPE is not defined as a constant

error message when used with finfo_file(FILEINFO_MIME_TYPE, $string)
it says something like this: "expected Int, string given"

using 16 instead makes it work as should.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-07 11:11 UTC] tomse at tomse dot dk
using FILEINFO_MIME gives no errors and works as intended.

php / pecl was added with pkg_add -r from stable branch
 [2012-03-03 19:43 UTC] iliaa@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

Cannot reproduce this issue...
 [2012-03-03 19:43 UTC] iliaa@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 23:01:29 2024 UTC