Re: dropping curly braces
| From: | Robert Cummings | Date: | Fri, 18 Nov 2005 08:31:10 +0000 |
| Subject: | Re: dropping curly braces | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20137@lists.php.net to get a copy of this message | ||
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.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'