Re: PEAR Coding Standards question

From: Date: Fri, 22 Aug 2008 11:04:46 +0000
Subject: Re: PEAR Coding Standards question
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-50616@lists.php.net to get a copy of this message
On Fri, Aug 22, 2008 at 11:20 AM, Christian Weiske <cweiske@cweiske.de> wrote: > It can be made to be 100% sure that the resulting code is correct. Just > parse the file with the tokenizer, leave out all the whitespace and you > should have the same structure. Then you can be sure the code functions > the same way. Yes in fact it currently does work with the tokenizer(wrapper) borrowed from phpcs. Simplified to distinct only the types: comments, whitespace, enquoted stings, all-other. Still; it's preg_replacing actual code in 'all-other', and something tells me I should be very careful when it comes to guaranteeing anything to anybody. -- Met vriendelijke groet / Kind regards, Kevin van Zonneveld http://kevin.vanzonneveld.net

« previous php.pear.dev (#50616) next »