Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81879 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6768 invoked from network); 5 Feb 2015 08:55:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 08:55:51 -0000 Authentication-Results: pb1.pair.com header.from=martin.keckeis1@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=martin.keckeis1@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.178 as permitted sender) X-PHP-List-Original-Sender: martin.keckeis1@gmail.com X-Host-Fingerprint: 209.85.214.178 mail-ob0-f178.google.com Received: from [209.85.214.178] ([209.85.214.178:37755] helo=mail-ob0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/A9-51979-61033D45 for ; Thu, 05 Feb 2015 03:55:50 -0500 Received: by mail-ob0-f178.google.com with SMTP id uz6so5969345obc.9 for ; Thu, 05 Feb 2015 00:55:48 -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=wel1VWq3ogBiGOzd7Xst4OZgrlTcZG6yDEXDB4iJ3bI=; b=cQshvnQwN8RZuRUNNyJXgMQpNdR5XN/83/+9KyeMyQO+ZClgTuKvwmsWkTBUtvUPBa WaMfO0s5G7GyDVn1v6L/8pFJjKL1SxNsfKVJf5iOiQ1V9hcjxviSg7LMbF0e7ZWEwCnA AoJu3Sd7LJzMkZ34OuzuNM/qXGcMfkBZ57jRhoNhELYEYHe4/BP5cHCj2VLsRhlHgjHa mAh+QbOUeCBkrKQIZuaUS66FAlLzZQeG7iJmjp0+uruqr1Gd1vTRfP5tM4lzXyIaWg7w LYwlvQRlQEY/sgXWw8zUg3OY+PqTMi16TR3qF5M+IlE6qJxmAMDNmXieg5+wGb6gSyTm Hlfw== MIME-Version: 1.0 X-Received: by 10.202.3.65 with SMTP id 62mr1472448oid.11.1423126548317; Thu, 05 Feb 2015 00:55:48 -0800 (PST) Received: by 10.202.232.205 with HTTP; Thu, 5 Feb 2015 00:55:48 -0800 (PST) In-Reply-To: References: Date: Thu, 5 Feb 2015 09:55:48 +0100 Message-ID: To: Pierre Joye Cc: Yasuo Ohgaki , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113ba080620afe050e53781f Subject: Re: [PHP-DEV] [RFC][DISCUSSION] script() and script_once() From: martin.keckeis1@gmail.com (Martin Keckeis) --001a113ba080620afe050e53781f Content-Type: text/plain; charset=UTF-8 > > I do not see any appealing reason to add yet another set of include > function/ops, even less for ini settings. > > My reasoning is simple. Nothing we can do will prevent one or the > other to shoot himself in each knees, many times. > > While trying to protect them to do include $foo where $foo == > "somereallybadpath", he will pretty much do the same with echo > file_get_contents($foo); > > The history of php magic security issues tell me one thing, we should > leave that to the OS level and reports error the IO layers return, > when it fails > True. The time where magic $_GET or similar file inclusions was a "common pattern" (should be) gone. Especially since psr0/psr4/composer/... came up I think it would be more worth to include something like this: https://wiki.php.net/rfc/escaper --001a113ba080620afe050e53781f--