Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80174 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18152 invoked from network); 5 Jan 2015 14:29:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2015 14:29:43 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qc0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:42161] helo=mail-qc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E9/50-11988-D699AA45 for ; Mon, 05 Jan 2015 09:02:21 -0500 Received: by mail-qc0-f177.google.com with SMTP id x3so15353503qcv.36 for ; Mon, 05 Jan 2015 06:02:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FsLWH7i4nKF0NWQHPT6io6TREKvIT1cr3bDr5Rpg0ss=; b=sS2ogt6jsfluUG6BnvPxPemD8Xj2xqslgn074ws8PHj70gohy0eVq+RHpNGAUbxT1p 62V9P1jRyG3dOsZl40HKv05VyzxHYOn6YSX+0ghSjJZ+HyYroNMmpyxhyYQFCWzXi4VS JOQp/ekGNZmkMP6e+lwkPv+896hc/0F6Jj1jOcHKAvz2Hetqm3nbD4aVpImJN6NR3wTP 4ruIeMcqcdplmHhSY2MWo5ChflsRQAIDfPxo2jvyk53Ln8rY0uPDt1IPJzpXYdFi/QPj HwXihrAP4GPICGUWH1aEhB7FxDExlKL5aHcV1Qqk7vGEIq7mlmO8vjTlux502PY4E6BP /csg== MIME-Version: 1.0 X-Received: by 10.224.120.65 with SMTP id c1mr147077433qar.87.1420466538575; Mon, 05 Jan 2015 06:02:18 -0800 (PST) Received: by 10.140.22.106 with HTTP; Mon, 5 Jan 2015 06:02:18 -0800 (PST) Received: by 10.140.22.106 with HTTP; Mon, 5 Jan 2015 06:02:18 -0800 (PST) In-Reply-To: References: Date: Mon, 5 Jan 2015 06:02:18 -0800 Message-ID: To: Benjamin Eberlei Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c2d5d47280ac050be82367 Subject: Re: [PHP-DEV] [RFC] Extension Prepend Files From: pierre.php@gmail.com (Pierre Joye) --001a11c2d5d47280ac050be82367 Content-Type: text/plain; charset=UTF-8 Hi, On Jan 4, 2015 6:52 PM, "Benjamin Eberlei" wrote: > > Hey everyone, > > I want to open discussion on my RFC to strengthen the ability of extensions > to provide functionality to developers in both C **and** PHP code. > > For this extensions can add PHP files to a list of "prepend files" that are > part of every request execution exactly the same way the INI > auto_prepend_file functionality works: > > https://wiki.php.net/rfc/extension_prepend_files > > I propose implementation details in the RFC, but they are completely up to > discussion. I am even sure there is probably a better way than what I > proposed, because I am not familiar with the code. I understand the idea however I wonder what are the gains for the user? On any case the file has to be at the right place, etc. Also as it is internals only, it could be nicer to expose the prepend config using the existing directive with options like first, before, last for the insert position. While being at it, a similar feature can be added to auto prepend/append as it can be very useful in user land as well. Cheers, Pierre --001a11c2d5d47280ac050be82367--