Issue Type: Bug Created: 2009-09-16T06:08:09.000+0000 Last Updated: 2009-09-16T12:30:32.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)
Reporter: Karol Grecki (antych) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File
Related issues: Attachments:
This validator doesn't seem to work any more after upgrading to PHP5.3 (which now comes with fileinfo extension built in)
<pre class="highlight"> $mime = new finfo(FILEINFO_MIME); $this->_type = $mime->file($value);
file() used to return just "image/jpeg", now it returns "image/jpeg; charset=binary". This no longer matches values in the predefined array and validation fails.
Posted by Thomas Weidner (thomas) on 2009-09-16T12:30:27.000+0000
Fixed with r18147.
You could instead use Zend_Validate_MimeType which works already under 5.3 with this ZF release.
Have you found an issue?
See the Overview section for more details.