Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20151 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98974 invoked by uid 1010); 18 Nov 2005 14:31:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98959 invoked from network); 18 Nov 2005 14:31:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2005 14:31:55 -0000 X-Host-Fingerprint: 195.197.172.115 gw01.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.115:40938] helo=gw01.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 9A/94-07637-BD5ED734 for ; Fri, 18 Nov 2005 09:31:55 -0500 Received: from nest.netphobia.fi (YZDCXXXI.dsl.saunalahti.fi [85.76.35.232]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 7A2AAFF5BD; Fri, 18 Nov 2005 16:31:48 +0200 (EET) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id jAIEVng0006457; Fri, 18 Nov 2005 16:31:50 +0200 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id jAIEVnsG006454; Fri, 18 Nov 2005 16:31:49 +0200 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Fri, 18 Nov 2005 16:31:49 +0200 (EET) Reply-To: Jani Taskinen To: Steph Fox cc: truth@proposaltech.com, internals@lists.php.net In-Reply-To: <0dc401c5ec45$41352e30$5f416551@foxbox> Message-ID: References: <437B530A.5050105@prohost.org> <437CF6B4.5080207@web.de><437CF943.7090800@lerdorf.com> <437D0D08.8060805@web.de> <437D0E22.7080006@lerdorf.com><437D11B7.7090102@web.de> <437D1361.5080504@prohost.org><1132274666.8441.175.camel@notebook> <6.2.3.4.2.20051117165150.028458b0@localhost> <0dc401c5ec45$41352e30$5f416551@foxbox> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] Upgrading php From: sniper@iki.fi (Jani Taskinen) The shell script we use here at work can be found here: http://www.php.net/~jani/patches/syntax_check.sh.txt We have this line in our CVSROOT/commitinfo file: ALL $CVSROOT/CVSROOT/syntax_check.sh %r/%p %s --Jani On Fri, 18 Nov 2005, Steph Fox wrote: > > Jani, I'm going to slip that into the upgrade notes - I wasn't aware you > could do this 'til now either! > > ----- Original Message ----- > From: "Jani Taskinen" > To: "Andi Gutmans" > Cc: ; > Sent: Friday, November 18, 2005 8:06 AM > Subject: Re: [PHP-DEV] Upgrading php > > >> On Thu, 17 Nov 2005, Andi Gutmans wrote: >> >>> I'm hoping that in future we can provide better tools for upgrading in > between >>> versions. Both from an auto-conversion perspective and just scanning the > code >>> statically and printing out warnings on what code to check. Coupled with >>> better upgrading docs I think we'd improve the current situation >>> significantly. >> >> We already have the scanner: >> >> # php -derror_reporting=4095 -l script_to_check.php >> >> Strict Standards: Usage of {} to access string offsets is deprecated and >> will be removed in PHP 6 in t.php on line 6 >> No syntax errors detected in t.php >> >> With a simple shell script you can create a list of files having >> any errors/warnings/notices/strict.. :) >> >> At work we use a syntax checker script run whenever we commit files >> to our CVS repository to catch any errors early..this reminded me to >> fix that script to catch notices and such too. :) >> >> --Jani >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > -- Give me your money at @ Donating money may make me happier and friendlier for a limited period! Death to all 4 letter abbreviations starting with P!