llocally / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Patch for /trunk/timthumb.php #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Faster image mime type check with the new finfo_file with php>5.3 

Original issue reported on code.google.com by ldanze...@gmail.com on 15 May 2011 at 11:41

Attachments:

GoogleCodeExporter commented 9 years ago
forgot to include also finfo_close($mime_type); afeter return $mime_type; too 
free resources.

Original comment by ldanze...@gmail.com on 16 May 2011 at 12:07

GoogleCodeExporter commented 9 years ago
Thanks for the suggestion, unfortunately since this is for PHP 5.3 I don't 
think I will integrate it just yet since it will exclude a lot of older 
servers. I understand the arguments about security etc but I think this should 
work on the widest variety of setups possible.

Original comment by BinaryMoon on 7 Jul 2011 at 8:39