Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22778 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12560 invoked by uid 1010); 15 Apr 2006 06:45:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12544 invoked from network); 15 Apr 2006 06:45:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Apr 2006 06:45:34 -0000 X-Host-Fingerprint: 212.112.227.169 ipx11223.ipxserver.de Linux 2.5 (sometimes 2.4) (4) Received: from ([212.112.227.169:45186] helo=ipx11223.ipxserver.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 43/8F-19715-E8690444 for ; Sat, 15 Apr 2006 02:45:34 -0400 Received: from localhost (localhost [127.0.0.1]) by ipx11223.ipxserver.de (Postfix) with ESMTP id 38E27DF007B; Sat, 15 Apr 2006 08:46:49 +0200 (CEST) Received: from ipx11223.ipxserver.de ([127.0.0.1]) by localhost (ipx11223 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01076-01; Sat, 15 Apr 2006 08:46:41 +0200 (CEST) Received: from [127.0.0.1] (i577B586B.versanet.de [87.123.88.107]) by ipx11223.ipxserver.de (Postfix) with ESMTP id 926C8DF0028; Sat, 15 Apr 2006 08:46:40 +0200 (CEST) Message-ID: <44409681.8010406@php.net> Date: Sat, 15 Apr 2006 08:45:21 +0200 User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Steph Fox Cc: Rasmus Lerdorf , internals References: <44405E58.8040808@lerdorf.com> <44409342.4030706@php.net> <11b601c66057$76abf540$6602a8c0@foxbox> In-Reply-To: <11b601c66057$76abf540$6602a8c0@foxbox> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by somedaemon at backendmedia.com Subject: script upgrading program was Re: [PHP-DEV] Re: Summer of Code From: lsmith@php.net (Lukas Smith) Steph Fox wrote: > Is it a really stupid idea to suggest a script upgrading program a la > 'autoupdate' (for 4/5 -> 6)? > > It's something I hoped to tackle myself, but am unlikely to find the > time for. Well if it works it could solve some issues. Like handling stupid BC breaks (array_merge, class_exists), exploit new features (parsing phpdoc to set PPP) and generally make the code a happy E_STRICT camper. The potential for breakage is huge though (take the PPP example ..) and also for code library it would mean that users will report all sorts of suprising bugs (unless you test the code in all its variations). So maybe as a one time migration tool it could make a nice addition to PHP_Compat (implements new functions/constants etc in userland) and PHP_CompatInfo (determines the minimal php version). regards, Lukas