Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33297 invoked from network); 3 Feb 2013 22:54:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2013 22:54:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.160.182 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.160.182 mail-gh0-f182.google.com Received: from [209.85.160.182] ([209.85.160.182:60849] helo=mail-gh0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/27-22879-19AEE015 for ; Sun, 03 Feb 2013 17:54:10 -0500 Received: by mail-gh0-f182.google.com with SMTP id z15so1405297ghb.13 for ; Sun, 03 Feb 2013 14:54:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=n0xlbYQ264MwfC19+6TILUP3foO1sfI5FhOwNl2EC0Y=; b=ReZIdHcW0AKQSkOQm3ASsdqu+62tdhSrJjSULMsZ0Al3A6NxRjYUA8V7yIJpl1Dq/E clP/FFcpcRvmkaTvmoHIGj18t4ubw+IHIxV3vRju49dgeLQxhR/hC8D14wOLGs3nomEQ o6mp80O0oze9ALXLeJXfP168v9AYBq8lWy9pJoqWQeQDSfHnH4iF8T61eJOU5Y7RQ2Lp 8EX78KOnb/pPnPjskewwRElD7HKvdfjWxCthYLaCsz6Rqqg/HdV/yXo0aFHF8tdJIivo O842v+UxJaxa5z4sBZdlQN+XQBgIPgQNPc9OeZ9m61HNiYr2PgqJR02mRaHTEN1CgleK MxCw== X-Received: by 10.236.170.230 with SMTP id p66mr10162427yhl.51.1359932046919; Sun, 03 Feb 2013 14:54:06 -0800 (PST) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id q11sm13980833anp.13.2013.02.03.14.54.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Feb 2013 14:54:06 -0800 (PST) Message-ID: <510EEA8C.9010407@lerdorf.com> Date: Sun, 03 Feb 2013 14:54:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Thomas Bley CC: "internals@lists.php.net" References: In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlvXT5d3JrCTD/sb77Sf5lsAwoyaVB3w/o9sm6evah4gQHCjtkrOfEBlfsGw9Tpwhb2teIP Subject: Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning From: rasmus@lerdorf.com (Rasmus Lerdorf) On 02/03/2013 02:49 PM, Thomas Bley wrote: > 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. Nothing stops you from doing that. Compile as many versions as you want with different --with-config-file-path settings. -Rasmus