Re: [PHP-DEV] Adding new MIME types for the CLI web server

2013-11-01 Thread Andrea Faulds
On 31/10/13 21:32, Derick Rethans wrote: Isn't there a reason why you can't use the fileinfo extension/code for this instead? Hardcoding it seems rather strange? I looked at the manual and mime_content_type() is deprecated and tells me to use the Fileinfo PECL extension. From which I am

Re: [PHP-DEV] Adding new MIME types for the CLI web server

2013-11-01 Thread Stas Malyshev
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

Re: [PHP-DEV] Adding new MIME types for the CLI web server

2013-11-01 Thread Derick Rethans
On Thu, 31 Oct 2013, Christopher Jones wrote: The PHP CLI web server 5.5 currrently supports these MIME types natively: { html, text/html }, { htm, text/html }, { js, text/javascript }, { css, text/css }, { gif, image/gif }, { jpg, image/jpeg },

Re: [PHP-DEV] Adding new MIME types for the CLI web server

2013-11-01 Thread Christopher Jones
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

[PHP-DEV] Adding new MIME types for the CLI web server

2013-10-26 Thread Christopher Jones
I'm planning on adding some MIME type to the CLI web server. For PHP 5.5.5 CLI web server I added the .pdf MIME type. I was using the webserver for a conference exhibition hall demo and needed to present a PDF. Some other multi-media types could be useful in future situations, and in general.