Re: dropping curly braces

From: Date: Fri, 18 Nov 2005 08:12:54 +0000
Subject: Re: dropping curly braces
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-20134@lists.php.net to get a copy of this message
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. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#20134) next »