Summary: | PHP 5 default apache configuration uses "FilesMatch" containers to specify when it would be better to use simple "AddHandler" directives | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Timothy Benjamin Martin <instanttim> |
Component: | [OLD] Server | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | bturner, n-roeser |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 274512 |
Description
Timothy Benjamin Martin
2009-07-25 20:40:29 UTC
You are right, I did not think of that at all, will change in the next revision. One thing to keep in mind if implementing this: Using mod_mime's AddHandler causes the handler to be used if the filename *contains* the extension rather than *ends with* the extension. So a file mycode.php.html will be parsed as a PHP file when AddHandler is used, but not when the FilesMatch directive is used. This may be what people want, or it may not. But either way, this change is not without consequences, however minor they might be. For more info, see: http://httpd.apache.org/docs/2.2/mod/mod_mime.html#multipleext The current in tree php-5.3.2 uses AddHandler like you suggested. Thanks. I change AddHandler application/x-httpd-php .php .php5 .phtml AddHandler application/x-httpd-php-source .phps to AddHandler application/x-httpd-php5 .php .php5 .phtml AddHandler application/x-httpd-php5-source .phps |