Re: Per-directory PHP configuration
| From: | Edward Z. Yang | Date: | Mon, 24 Aug 2009 22:18:48 +0000 |
| Subject: | Re: Per-directory PHP configuration | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45368@lists.php.net to get a copy of this message | ||
Excerpts from Pierre Joye's message of Mon Aug 24 18:03:14 -0400 2009:
> The patch is missing.
I intentionally omitted it, since it had some code specific to our
environment. I have posted it here:
http://web.mit.edu/~ezyang/Public/php-scripts.patch
It is very very rough and does things that would never ever be allowed
in the PHP core.
> However I already have a question. I hope you
> know that we introduced the ini per dir in 5.3. It supports user ini
> files in the document root, [PATH=...] in the main php.ini, etc. Did
> you improve it or started from scratch?
The patch is off of PHP 5.2 (which we have deployed); I wasn't aware until
recently of the new ini per dir functionality. I don't think it has
quite the same functionality though.
> Btw, for previous php versions, did you look at pecl's htscanner as well?
I had not heard of htscanner, and on the prompting of your mail went and
looked it up. That is a very interesting implementation, although due
to backwards-compatibility we can't exactly tell all of our users to convert
their php.ini files into htaccess files ;-)
If I have misinterpreted, please let me know (I only made cursory glances
through the associated diffs/source code).
Cheers,
Edward