|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-15 15:10 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Package: Fileinfo
+Package: *General Issues
-Assigned To:
+Assigned To: cmb
[2015-04-15 15:10 UTC] cmb@php.net
[2015-04-26 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ 1. Have the code in the "reproduce code" section 2. In windows, open Notepad, and save the blank txt file as c:\a.txt. The file size should be 0 bytes. 3. execute the code Reproduce code: --------------- $handle = finfo_open(FILEINFO_MIME,'c:\xampp\php\extras\magic'); if (!$handle) { echo "Opening fileinfo database failed"; exit(); } //echo var_dump($handle); $file1 = "c:\a.txt"; $mime_type = finfo_file($handle,$file1); echo $mime_type; finfo_close($handle); Expected result: ---------------- Apache should not crash. It should return application/empty or similar result. Actual result: -------------- Problem Event Name: APPCRASH Application Name: apache.exe Application Version: 2.2.6.0 Application Timestamp: 47319811 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6000.16386 Fault Module Timestamp: 4549bdc9 Exception Code: c0000005 Exception Offset: 00062086 OS Version: 6.0.6000.2.0.0.768.3 Locale ID: 1033 Additional Information 1: b20d Additional Information 2: 39e3e624db72f4805472ecca389bc21b Additional Information 3: b9e4 Additional Information 4: dd248f9918d6cf47cd723c28e9132481 Read our privacy statement: http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409