Re: dropping curly braces

From: Date: Sat, 19 Nov 2005 02:13:02 +0000
Subject: Re: dropping curly braces
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-20176@lists.php.net to get a copy of this message
On 2005-11-18, Robert Cummings <robert@interjinn.com> wrote: > On Fri, 2005-11-18 at 03:12, Derick Rethans wrote: >> On Thu, 17 Nov 2005, Robert Cummings wrote: >> >> > On Thu, 2005-11-17 at 16:42, Rasmus Lerdorf wrote: >> > > Andreas Korthaus wrote: >> > > >> > > > Can someone tell me the reason for this decision? >> > > >> > > Very few people converted to using {} so the argument about reading old >> > >> > Ugh, so those of us that did are going to have to comb back through our >> > code and revert after following the original suggestion. UGH! >> >> This should fix all occurences (even with PHP 5.1.0): >> >> for i in find . -name \*.php; do php -l $i; done >> >> atleast, if you turn E_STRICT on, with some smart grepping you know in >> no-time what to change. > > That's pretty cool. I always forget about the -l option. Thanks. Scripts might act weird if you have spaces or other odd chars in your directory names. find . -name '*.php' -exec php -l {} \; -- Met vriendelijke groeten, Tim Van Wassenhove <http://timvw.madoka.be>

« previous php.internals (#20176) next »