PHP crashes when using finfo_file() to get mime info with this file (included)
| Bug #49732 | PHP crashes when using finfo_file() to get mime info with this file (included) | ||||
|---|---|---|---|---|---|
| Submitted: | 2009-10-01 07:27 UTC | Modified: | 2009-10-01 15:30 UTC | ||
| From: | nirvn dot asia at gmail dot com | Assigned: | pajoye (profile) | ||
| Status: | Closed | Package: | Unknown/Other Function | ||
| PHP Version: | 5.3.0 | OS: | windows xp | ||
| Private report: | No | CVE-ID: | None | ||
[2009-10-01 07:27 UTC] nirvn dot asia at gmail dot com
Description: ------------ Using the function finfo_file() to get the mime of the file attached to this bug will crash PHP (and apache) on windows XP / 2003. I didn't have the chance to test it on a linux machine. Reproduce code: --------------- //here's the code that goes kaboom $finfo = finfo_open(FILEINFO_MIME); $mime = finfo_file($finfo,realpath($fname)); finfo_close($finfo); Expected result: ---------------- Returns the mime type of desired file. Actual result: -------------- Crash.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-10-01 09:22 UTC] pajoye@php.net
[2009-10-01 09:42 UTC] nirvn dot asia at gmail dot com
[2009-10-01 10:25 UTC] pajoye@php.net
[2009-10-01 12:09 UTC] nirvn dot asia at gmail dot com
[2009-10-01 13:55 UTC] pajoye@php.net
[2009-10-01 15:30 UTC] nirvn dot asia at gmail dot com