Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82415 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13757 invoked from network); 11 Feb 2015 05:42:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 05:42:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.47 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.47 mail-qa0-f47.google.com Received: from [209.85.216.47] ([209.85.216.47:39918] helo=mail-qa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/32-33902-AABEAD45 for ; Wed, 11 Feb 2015 00:42:04 -0500 Received: by mail-qa0-f47.google.com with SMTP id v10so1148430qac.6 for ; Tue, 10 Feb 2015 21:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=rIACYpfRj81QjKiONPyxryCAD2N7TNIpIxlKYhiGrY4=; b=wjwl3PZwGJheOCeeSG34ETTDJz6CsxKb5gNhK4POfWP25Zgec48RFwZipDuw5OYY3g R0BRU7ZknJ7i/QJrfIs7KIqATOVSKcMHuRVLhr+dhBMEKkzNoooW/f9LRYPafocv+Z3h T6JQ4MdYBPZ/RYkgigQdbcXBosax6Zm3kcJe0Zf6x2BoMzgTrk2kg70OJjYGM5vu7QSR yBXsFFeVVPLYZFAr32Sb6pOHsZVEXl71U8ORP2GSWV2NGZLEbVGZUEr5Dpesc1+5yym0 +lXeKsY0qwVaUJVM5EH2A2vyzuFkD2A8hToCSYzmoDxH9lwS1Alhz1kT1cXU2PJ+ONuf 46VA== X-Received: by 10.140.21.229 with SMTP id 92mr58921354qgl.33.1423633319808; Tue, 10 Feb 2015 21:41:59 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.250.195 with HTTP; Tue, 10 Feb 2015 21:41:19 -0800 (PST) In-Reply-To: References: <54D9BFDD.70105@beccati.com> Date: Wed, 11 Feb 2015 14:41:19 +0900 X-Google-Sender-Auth: GiPa74pv2ie2pTqyyCIX5AfFCTg Message-ID: To: Matteo Beccati Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c12f8c5157a2050ec976f5 Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Script only includes From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c12f8c5157a2050ec976f5 Content-Type: text/plain; charset=UTF-8 Hi Matteo, On Wed, Feb 11, 2015 at 12:48 PM, Yasuo Ohgaki wrote: > On Tue, Feb 10, 2015 at 5:22 PM, Matteo Beccati wrote: > >> On 10/02/2015 01:52, Yasuo Ohgaki wrote: >> >>> Some of you are tired with this topic, but please take a look the RFC >>> >>> [RFC] Script only includes - this is 3rd version. >>> https://wiki.php.net/rfc/script_only_include >>> >>> Please let me know what you like or dislike. >>> >> >> I understand you goal, but ini settings are *bad*. We need less of them, >> not more. >> >> Developing applications or libraries that are resilient to all possible >> "variants" in the ini settings is painful. It's a waste of time for both >> users and developers trying to provide support. > > > I proposed script()/script_once() at first. Considering new names that > might > break existing apps, I choose INI. > > The INI may be removed in the future, if include/require has an option. > e.g. > > require string $filename [, bool $embed_mode_flag]; > > Would you like me to include this change proposal in the RFC? > Even if we have embed_mode_flag, we are better to have the INI option for > a > while for smooth migration. > How about remove 2 INIs in the future with this RFC? script_embed=On/Off (New with this RFC) allow_url_include=On/Off I'll prepare patch that require(_once) string $filename [, int $include_type]; include(_once) string $filename [, int $include_type]; Where $include_type are - PHP_INCLUDE_DEFAULT (default: no embed, no URL) - PHP_INCLUDE_EMBED (allow embed) - PHP_INCLUDE_URL (allow URL) These types are combined like "PHP_INCLUDE_EMBED | PHP_INCLUDE_URL". Then, above 2 INIs may be deprecated and remove in the future. How about remove them by PHP 7.3. What do you think? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c12f8c5157a2050ec976f5--