Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5566 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93623 invoked by uid 1010); 19 Nov 2003 18:33:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93599 invoked from network); 19 Nov 2003 18:33:02 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 19 Nov 2003 18:33:02 -0000 Received: (qmail 4093 invoked from network); 19 Nov 2003 18:33:00 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by int.zend.com with SMTP; 19 Nov 2003 18:33:00 -0000 Message-ID: <5.1.0.14.2.20031119203213.034a0678@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 19 Nov 2003 20:33:00 +0200 To: ilia@prohost.org,internals@lists.php.net In-Reply-To: <200311191124.56176.ilia@prohost.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] validate_file() and strip_file() From: andi@zend.com (Andi Gutmans) References: <200311191124.56176.ilia@prohost.org> 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