Re: UPDATED RFC version 1.1: source files without opening <?php tag
| From: | Yasuo Ohgaki | Date: | Fri, 13 Apr 2012 02:20:50 +0000 |
| Subject: | Re: UPDATED RFC version 1.1: source files without opening <?php tag | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59845@lists.php.net to get a copy of this message | ||
Hi,
I think script only include should have it own function, since
it's the current semantics of PHP.
require/require_once/include/include_once why not script/script_once?
Stats give an interesting idea. It can be normal function.
How about write a PECL module for it?
You can do that by scanning PHP script by lex_scan() and validate
it, then execute. For script_once(), just lookup if it is loaded already.
For token scan, you might want to take a look at tokenizer source.
Looking forward your module.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net