Re: RFC about automatic template escaping
| From: | Sara Golemon | Date: | Tue, 22 Mar 2016 18:42:33 +0000 |
| Subject: | Re: RFC about automatic template escaping | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91860@lists.php.net to get a copy of this message | ||
On Tue, Mar 22, 2016 at 7:43 AM, Colin O'Dell <colinodell@gmail.com> wrote:
> This is a really interesting idea! However, I'm unsure whether it's wise
> to bring this feature in without having the community test and validate it
> first. Would it be possible to release this as an extension first so we
> can gauge its stability and desirability in "the real world"?
>
It is possible! While the implementation here adds a whole new opcode
and ast kind, the reality is that it could be implemented as an
extension by overriding the ZEND_ECHO opcode (see pecl/operator for
examples of how to do this).
-Sara