Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45368 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58001 invoked from network); 24 Aug 2009 22:18:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2009 22:18:54 -0000 Authentication-Results: pb1.pair.com header.from=ezyang@MIT.EDU; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ezyang@MIT.EDU; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain MIT.EDU designates 18.7.7.80 as permitted sender) X-PHP-List-Original-Sender: ezyang@MIT.EDU X-Host-Fingerprint: 18.7.7.80 BISCAYNE-ONE-STATION.MIT.EDU Solaris 9 Received: from [18.7.7.80] ([18.7.7.80:60518] helo=biscayne-one-station.mit.edu) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/6A-03363-DC1139A4 for ; Mon, 24 Aug 2009 18:18:53 -0400 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id n7OMImml025973; Mon, 24 Aug 2009 18:18:49 -0400 (EDT) Received: from localhost (ita4fw1.itasoftware.com [63.107.91.99]) (authenticated bits=0) (User authenticated as ezyang@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id n7OMImkD020770; Mon, 24 Aug 2009 18:18:48 -0400 (EDT) Content-Type: text/plain; charset=UTF-8 Cc: internals To: Pierre Joye In-reply-to: References: <1251149348-sup-4709@javelin> Date: Mon, 24 Aug 2009 18:18:48 -0400 Message-ID: <1251151666-sup-9840@javelin> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.42 X-Spam-Flag: NO X-Spam-Score: 0.00 Subject: Re: [PHP-DEV] Per-directory PHP configuration From: ezyang@MIT.EDU ("Edward Z. Yang") 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