Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81862 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68856 invoked from network); 5 Feb 2015 05:37:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 05:37:43 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.223.178 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.223.178 mail-ie0-f178.google.com Received: from [209.85.223.178] ([209.85.223.178:51107] helo=mail-ie0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/32-51979-3A103D45 for ; Thu, 05 Feb 2015 00:37:40 -0500 Received: by mail-ie0-f178.google.com with SMTP id rd18so7692286iec.9 for ; Wed, 04 Feb 2015 21:37:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=6qTjumL1EE3q8M7e8OM1O+JCAHIOTJcdfXu1IJbcUvE=; b=1fdx2WS50lORUTDUn3TySehtNlI38oIMC/n6egcdHr3d7QWXT4ZFWvJV6yExYxC+zJ IKJ8JoCWnGzJ0n2fWwAxd5GE6Miw6op6lgYL8h591BqVjSuuAbZRyIXurSSgrcbSjz62 Vkktk2FUaNyWZSOJLs71yAMTWCOiJTNyp4+W8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=6qTjumL1EE3q8M7e8OM1O+JCAHIOTJcdfXu1IJbcUvE=; b=GA3wgPBYI/5UIE79LV6avX/A3tq7M7RfNLYbJs8eiR7FZwIOY9SUSlTzO8u2bMcUB4 bi8K5SbeuwMKLAwOMSpMh7Eyu2k9Sd6M4G+f8z2oqSFDDi8vzilweNEcX7wwMPiY3Nir CKPzz9n/X+DFBCWjLuIeIur5HKEweC1ZDHzj7A67mym9bU/y/zvAdCwKxlxX+zEHn7ke t62hVqg/yM+5sAmM5GkDdYFZ99Optkyy4MkVsq/2mOgmzIl9CWARryCKJXK5YmB52/hb mUN6XCUAxx9MNpboVvlPe2VY64xQu5NIimcB+mIlzoj+fYD9gM9ELp3BDuWgeb/bTf3X 9Bzw== X-Gm-Message-State: ALoCoQmeSmdtjDsiEIZrKvduF3y7cfbkgMjN2z9eaFCIscK3a7voVUqNIJjOkB//jwm9rTg72iMc X-Received: by 10.42.4.201 with SMTP id 9mr5470262ict.23.1423114656769; Wed, 04 Feb 2015 21:37:36 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.43.112.9 with HTTP; Wed, 4 Feb 2015 21:37:15 -0800 (PST) In-Reply-To: References: Date: Thu, 5 Feb 2015 13:37:15 +0800 X-Google-Sender-Auth: n9VC9MhAxzFvcPYWMGbJz_R1SjU Message-ID: To: Yasuo Ohgaki Cc: reeze , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: [RFC][DISCUSSION] script() and script_once() From: aharvey@php.net (Adam Harvey) On 5 February 2015 at 13:06, Yasuo Ohgaki wrote: >> Since script()/script_once() is almost copy of require()/require_once(), > it could be >> INI option. >> >> require_embed =3D On/Off > > Almost all users use 'require' only for script today, I guess. > I should have included this option in RFC. I'll do that now. I'd be very, very -1 on any new INI setting that changes language behaviour. We should be getting rid of those, not adding them. I'm not totally clear on what this RFC is proposing, honestly. Is the new script statement meant to only include files that are entirely wrapped in tags? Are files included that way assumed to be PHP and don't require tags? Something else? My initial reaction isn't positive, honestly =E2=80=94 we already have four statements that include files, and I'm not sure that another variation is merited. There's only so much we can do to stop users shooting their feet off: if "don't use untrusted input for file names with include/require" isn't obvious, that's an education problem, not a language one. Adam