Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20133 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27909 invoked by uid 1010); 18 Nov 2005 08:07:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27891 invoked from network); 18 Nov 2005 08:07:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2005 08:07:02 -0000 X-Host-Fingerprint: 195.197.172.115 gw01.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.115:53727] helo=gw01.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2D/CD-07637-4AB8D734 for ; Fri, 18 Nov 2005 03:07:01 -0500 Received: from nest.netphobia.fi (YZDCXXXI.dsl.saunalahti.fi [85.76.35.232]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 415DD1006E3; Fri, 18 Nov 2005 10:06:45 +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 jAI86jFw004495; Fri, 18 Nov 2005 10:06:45 +0200 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id jAI86hAJ004492; Fri, 18 Nov 2005 10:06:43 +0200 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Fri, 18 Nov 2005 10:06:43 +0200 (EET) Reply-To: Jani Taskinen To: Andi Gutmans cc: truth@proposaltech.com, internals@lists.php.net In-Reply-To: <6.2.3.4.2.20051117165150.028458b0@localhost> 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> 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) 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