#34325 [Opn->Bgs]: fastcgi htaccess scanning
| From: | simp@php.net | Date: | Sun, 02 Oct 2005 13:15:22 +0000 |
| Subject: | #34325 [Opn->Bgs]: fastcgi htaccess scanning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85880@lists.php.net to get a copy of this message | ||
ID: 34325
Updated by: simp@php.net
Reported By: bart dot vanbrabant at zoeloelip dot be
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 5.0.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Parsing webserver configuration files is the job of the server
software, not PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-09-01 11:50:06] bart dot vanbrabant at zoeloelip dot be
Description:
------------
This patch [1] adds support to the php fast-cgi interface to scan
.htaccess files. All directories from the document root to the
directory where the script is located will be scanned for an .htaccess
file, if that file contains php_value or php_flag then these values
will be parsed.
This patch can be changed a bit, it will change all config values it
finds. If each directory contains the same directive it will be altered
each time. It could be improved by storing them first in a hashtable but
it that has an overhead too. I think the current implementation will
give the best performance.
You can set the environmental variable PHP_SCAN_HTACCESS to 1 or on
now to enable it.
It can handle \n, \r or \r\n at the end of a line.
[1] http://files.zoeloelip.be/fast-cgi.diff
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34325&edit=1