Re: Re: Disabling PHP tags by php.ini and CLI options
| From: | Rasmus Lerdorf | Date: | Wed, 11 Apr 2012 15:45:27 +0000 |
| Subject: | Re: Re: Disabling PHP tags by php.ini and CLI options | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59735@lists.php.net to get a copy of this message | ||
On 04/11/2012 08:12 AM, Luke Scott wrote:
> Tom has a "similar" RFC that has two modes:
>
> - Template mode - how it is now
> - Code (or pure code) mode - <?php is only allowed at the top and is
> optional. ?> is disallowed.
>
> Tom's RFC calls for template mode to remain the default, but allow you
> to add a flag to require/include to interpret the script in "pure
> mode". Allowing an optional starting <?php (only at top) maintains
> backwards compatibility with most classes.
And my objection to that is similar. An optional templating mode is the
same as optional short_tags. it discourages template mode the same way
short_tags are discouraged. For short_tags that discouragement makes
sense. For templating it doesn't.
-Rasmus