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
yohg...@ohgaki.net

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to