On 10/31/13 4:12 PM, Stas Malyshev wrote:
Hi!
Final comments anyone, before I commit next week?
It looks strange that we have to hardcode so many mimetypes in the code,
and doesn't sound a scalable solution. Can't we make it use data from
fileinfo or some other customizeable table so we don't have to keep all
MIME types hardcoded in the code? Maybe some ability to use Apache's
mime.types file?
It isn't scalable, but users can always use a router script to add
additional types so there isn't a real world problem in missing
uncommon extensions.
My idea was to add common extensions to the existing look-up list. A
quick and straight-forward solution to making the CLI web-server
handle the 80-20 rule.
If someone (ajf?) wants to work on a more comprehensive solution
instead, I have no objection.
Chris
--
christopher.jo...@oracle.com http://twitter.com/ghrd
Free PHP & Oracle book:
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php