Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54390 invoked by uid 1010); 19 Nov 2005 02:13:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54374 invoked from network); 19 Nov 2005 02:13:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2005 02:13:04 -0000 X-Host-Fingerprint: 193.190.138.70 madoka.isw.student.khleuven.be Date: Fri, 18 Nov 2005 21:13:02 -0500 Received: from ([193.190.138.70:28109] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F3/37-07637-E2A8E734 for ; Fri, 18 Nov 2005 21:13:02 -0500 Message-ID: To: internals@lists.php.net References: <437B530A.5050105@prohost.org> <437CF6B4.5080207@web.de> <437CF943.7090800@lerdorf.com> <1132268684.18353.48.camel@blobule.suds> <1132302670.22860.12.camel@blobule.suds> User-Agent: slrn/0.9.8.1 (Debian) X-Posted-By: 193.190.138.70 Subject: Re: [PHP-DEV] dropping curly braces From: timvw@users.sourceforge.net (Tim Van Wassenhove) On 2005-11-18, Robert Cummings 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