Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82041 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36636 invoked from network); 6 Feb 2015 12:53:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 12:53:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:46083] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/31-45146-F59B4D45 for ; Fri, 06 Feb 2015 07:53:53 -0500 Received: by mail-wi0-f179.google.com with SMTP id l15so2190679wiw.0 for ; Fri, 06 Feb 2015 04:53:47 -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=UypUDFq53N8Vc+qrJp2w2XHVacuL3U64UDMTcRY23n8=; b=kvzmKsicnch/z2eRFIq/sQ4SXWeX+drINPhMTm90N9jvtS+XbJc3uCCVLuSyTOOI/Q 1jUHUF2QQl+m9siOGscMb/xHTG6s0feiG5U9a+UB6wkhLrGexTvexhXAFiOaxjrG+p0H 4nE5/UtcAsD2/LmyTOw9egecquoWQneuX/rEwtWsgtUXCeKrRVeSaeQCQ/+sCIDAudAY A5UBFr5xpKsGMhhPqUjBSBrN+/vyQaBOLnNg0BQr5kEf0JftjaI4DDaONxI1P3nLvoAA d1peZEqzylTXNNpgS0s2fF0VFN+M1pYaS1jidrYRgu/QmChyrZjSFqj2yg8a4KU6/oGi B8zw== MIME-Version: 1.0 X-Received: by 10.194.59.112 with SMTP id y16mr7561285wjq.36.1423227227451; Fri, 06 Feb 2015 04:53:47 -0800 (PST) Received: by 10.216.50.139 with HTTP; Fri, 6 Feb 2015 04:53:47 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Feb 2015 12:53:47 +0000 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Introduce scrpt_path From: leight@gmail.com (Leigh) On 6 February 2015 at 12:02, Yasuo Ohgaki wrote: > Hi all, > > This RFC was renamed from "script() and script_once()". > Original proposal had defect. It wasn't perfect. > > This RFC proposes "script_path" INI directive to eliminate > file/script inclusion at all via require(). > > https://wiki.php.net/rfc/script_path Couple of fixes and questions > Introduce script_path and download_path > Introduce script_path INI that specify directories that execution is allowed and upload_path Change download_path to upload_path. > PHP script detection by file content is **NOT** impossible > Therefore, PHP script detection by file content is impossible. I assume that you want to say impossible in both places? > include()/require() is source of file/script inclusion for a long time > Only require()/require_once() is affected. Is this on purpose? Is there a reason that include is not affected? I think this is a better solution than script{,_once}. I definitely prefer it over the previous RFC