Re: Re: [RFC][DISCUSSION] script() and script_once()

From: Date: Thu, 05 Feb 2015 10:20:53 +0000
Subject: Re: Re: [RFC][DISCUSSION] script() and script_once()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Leigh,

On Thu, Feb 5, 2015 at 5:31 PM, Leigh <[email protected]> wrote:

> On 5 February 2015 at 05:37, Adam Harvey <[email protected]> wrote:
> > 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 <?php and ?> tags? Are files included that way assumed to
> > be PHP and don't require <?php and ?> tags? Something else?
> >
>
> This is my initial reaction to the RFC, it doesn't state the
> _specific_ difference between include/script. I understand what was
> proposed in the nophptags RFC, but I have to make an assumption for
> this RFC.
>
> My assumption is that you want script* to not require <?php to begin
> parsing. i.e. including /etc/passwd would be a parse failure.


I'm proposing *SCRIPT* only inclusion. This can be done by

 - allowing "<?php" only at to top of script
 - not allowing "?>" anywhere (We may allow at the end possibly)

Those who do not understand my point.
Please search by "PHP LFI" or "PHP file inclusion" for real life
security issues.

Regards,

--
Yasuo Ohgaki
[email protected]


Thread (31 messages)

« previous php.internals (#81891) next »