Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46502 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29782 invoked from network); 23 Dec 2009 12:40:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Dec 2009 12:40:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike503@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike503@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.225 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mike503@gmail.com X-Host-Fingerprint: 209.85.220.225 mail-fx0-f225.google.com Received: from [209.85.220.225] ([209.85.220.225:62997] helo=mail-fx0-f225.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/C9-00186-4BF023B4 for ; Wed, 23 Dec 2009 07:40:21 -0500 Received: by fxm25 with SMTP id 25so1866127fxm.1 for ; Wed, 23 Dec 2009 04:40:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vY4CSta/gh4Q5FjXQTEIU+YxmEwcqdvtbZ6HWZgs5Q0=; b=XjZ30gYnzXn6Jz4U1tnNGW+yeKbxkDLWDPMXJI3egzwMdMSJ0EXGKrsc1VvhPAZIZc jG2/g9H9R3Zpvt4BKWz9tS/JvS+unADmBaiao/JSBIUXPTuyDxbd8r+MerRsr0Yn3VXu MsyM1fkTF5pxUb4te12lSTs1LiScHJWj+9uBg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Ve6DEQw772+v5iMn5lvSMYNMf67T/qAmI5TJgGqNWPTadqc95XD7yFhqvlyP8i8kob gYepaXS7PV4k+h/+qxi3mzJNmgFqs9boC6w18VPhBZKWCtiCs/gnFpEhV0x/AWTAzX+h ukmxAKaWFbhAcUQgWo2eEUkzmTn9dsWdcNh9Q= MIME-Version: 1.0 Received: by 10.239.179.101 with SMTP id c37mr1069355hbg.4.1261572017069; Wed, 23 Dec 2009 04:40:17 -0800 (PST) Date: Wed, 23 Dec 2009 04:40:17 -0800 Message-ID: To: php-dev Content-Type: text/plain; charset=UTF-8 Subject: Proposal: allow for includes in php.ini From: mike503@gmail.com (Michael Shadle) NOTE: I just remembered there -is- a config-file-scan-dir option at compile time. However, what about doing away with this and making it inline in php.ini, the syntax can match mysql, as it uses ini files as well. This mainly will help with programatically creating PHP-FPM pool config files, but could open up to other distro-specific or helpful things. This could allow for say, Ubuntu's php5-apc package to not modify php.ini, but include an apc.ini in /etc/php5/conf.d/ for example (which it might actually do already. I can't install it without messing up my box as I compile my own PHP) Since the scanning code is already there, seems like pretty trivial changes to the config file parser to add in an include declaration that behaves the same way (and supports wildcards!) - this would also allow for multiple locations to be scanned, not just the one defined at compile time. (I'm thinking of repos who have precompiled the PHP binary, so there is no flexibility there for users of repository-created packages) I'd submit a patch but I don't know C. Thoughts?