Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65597 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31620 invoked from network); 3 Feb 2013 22:49:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2013 22:49:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=thbley@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=thbley@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.181 as permitted sender) X-PHP-List-Original-Sender: thbley@gmail.com X-Host-Fingerprint: 209.85.128.181 mail-ve0-f181.google.com Received: from [209.85.128.181] ([209.85.128.181:56510] helo=mail-ve0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/D6-22879-469EE015 for ; Sun, 03 Feb 2013 17:49:09 -0500 Received: by mail-ve0-f181.google.com with SMTP id d10so4184742vea.26 for ; Sun, 03 Feb 2013 14:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=vAc1icPJ5JqPIV+ZTPorIQlT/atuYmdUoFIfuNzrY4A=; b=ckhqVKKxehWdQ2k85BlcvAoFzdn4qEspW9Tb5gLuNHwl04nXUJ8QtXq6dgGdGaWNiG VfGspfJf/TQALmp5bx8JSbBzeCguqDOlSWfa+7FGEkx1mxIUvFqAOG9pv6d9OsNsWLBX RURppP21ttloJMcTnXJ5Rk5j9AjFTV3lJxnCAJh6hA2bJbEKTHB2xC1p06WC+bIx7AOK g+Bsg8xO3X+88t3jaEtE+S7beq/96c6zaLdJAaIFIsvgboeNJPtBDDHKyOZhLpRaVg6F oxpCjpR5r3tQHtALkvDEk/JfKklKbtsBTJ9FMiw8iwyf+hMxmpKhwqmsWB2ZH5L/a5DO btfg== MIME-Version: 1.0 X-Received: by 10.52.88.175 with SMTP id bh15mr17147654vdb.34.1359931746027; Sun, 03 Feb 2013 14:49:06 -0800 (PST) Sender: thbley@gmail.com Received: by 10.220.94.4 with HTTP; Sun, 3 Feb 2013 14:49:05 -0800 (PST) In-Reply-To: References: Date: Sun, 3 Feb 2013 23:49:05 +0100 X-Google-Sender-Auth: tm0kx9ZVixx4KFH1cQt329mIlBs Message-ID: To: Nikita Popov Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning From: thbley+php@gmail.com (Thomas Bley) On Sun, Feb 3, 2013 at 11:22 PM, Nikita Popov wrote: > On Sun, Feb 3, 2013 at 12:36 PM, Karoly Negyesi wrote: > >> Hi, >> >> So, if we are talking about PHP 6, then the opening > accompanied by the version it was written for, it was tested with and then >> the engine could switch to a compatibility mode for that version. >> >> Seems to me that this would solve the problem where a host can't upgrade to >> a more modern version for fear of breaking old code. Consequently, open >> source packages -- like Drupal I am deeply involved with -- can't use more >> modern PHP versions decreasing the "push" for hosts to upgrade. This is a >> devilish circle and it'd be great to break it. >> >> Regards, >> >> Karoly Negyesi >> > > At least two points why this makes no sense whatsoever: > > 1) One would have to maintain or at least keep around all previous versions > of the engine and the libraries. That would be a shitload of cruft and a > lot of maintenance work. > > 2) Different behavior per-file is not feasible as components in both files > interact. If you have one (like, you know, calling a function from one file in the other one) you > will have a pretty hard time decided what behavior this should result in. > The done on a per-request basis (rather than per-file). And to do this on a > per-request basis you already have all the means. Just run two different > PHP versions. No issue with that; doesn't require no further support from > PHP. > > Nikita > Just run two different PHP versions. Using Debian/Ubuntu, I have "python2.6", "python2.7" and "python3" packages, but only one version of "php5-fpm". Maybe it would be better to have "php5.3-fpm" and "php5.4-fpm", using /etc/php5.3 and /etc/php5.4 ? Esp. for Travis-CI it would be much better to have separate packages than running custom workarounds. Regards, Thomas