Re: validate_file() and strip_file()
| From: | Andi Gutmans | Date: | Wed, 19 Nov 2003 18:33:00 +0000 |
| Subject: | Re: validate_file() and strip_file() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-5566@lists.php.net to get a copy of this message | ||
I think it's a very bad idea to start copying lexer code into basic_functions.c
I don't have time to look into it but there must be a cleaner way of doing it.
Andi
At 11:24 AM 11/19/2003 -0500, Ilia Alshanetsky wrote:
Attached file, implements validate_file(), which implements a php space syntax check for PHP scripts. It returns a boolean true/false value indicating whether the script has parse errors or not. Essentially a "php -l" from within PHP. strip_file() is added for completion (might as well :) ) and implements "php -w", which strips comments & whitespace from a PHP file. A quick obfuscater of sorts. Any comments? Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php