Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65592 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23341 invoked from network); 3 Feb 2013 22:27:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2013 22:27:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=karoly@negyesi.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=karoly@negyesi.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain negyesi.net from 209.85.128.47 cause and error) X-PHP-List-Original-Sender: karoly@negyesi.net X-Host-Fingerprint: 209.85.128.47 mail-qe0-f47.google.com Received: from [209.85.128.47] ([209.85.128.47:38381] helo=mail-qe0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/25-22879-F54EE015 for ; Sun, 03 Feb 2013 17:27:44 -0500 Received: by mail-qe0-f47.google.com with SMTP id 2so2566899qea.6 for ; Sun, 03 Feb 2013 14:27:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-received:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:x-gm-message-state; bh=nJEAaeblEJct6jl1Fy2DwuJtWYQzCXgroa3tegNYN98=; b=a4QtgjLyrRyJAI4U6xX5D8adef9qA9RapSr0KPUitPbJZjJmyr/yh8/6X0Gasc61vd ayD6mXt/Ql0MU3Qzn3qKtvrFDUVZsVGvmHVMx7mWeoQVxvWWnFFwYVdhe8PYucGM122N e3uBcv/JNQrd1NMa9NtMVeP/rjP2lSztHmfhL1hu630AvL9Qq432rp1MwNMlVzr/Hz8I a13gg2QakIqH2DGcSm7jvmoHoejDxFZ2b0phOidmrcH9amN/hHm04ksL4DcyWDHFa3Jh B3ieCg0OQ6wsVZdnpIZEBHg87BoLeGPPj1qOHjevlMGEhCE231lakBQfDlVNvi0RmPyr vN0A== X-Received: by 10.49.106.71 with SMTP id gs7mr20617805qeb.21.1359930461586; Sun, 03 Feb 2013 14:27:41 -0800 (PST) Received: from mail-qa0-f48.google.com (mail-qa0-f48.google.com [209.85.216.48]) by mx.google.com with ESMTPS id f5sm10416809qac.5.2013.02.03.14.27.40 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Feb 2013 14:27:40 -0800 (PST) Received: by mail-qa0-f48.google.com with SMTP id j8so1041950qah.0 for ; Sun, 03 Feb 2013 14:27:40 -0800 (PST) X-Received: by 10.224.212.132 with SMTP id gs4mr17029439qab.88.1359930460317; Sun, 03 Feb 2013 14:27:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.97.65 with HTTP; Sun, 3 Feb 2013 14:27:20 -0800 (PST) In-Reply-To: References: Date: Sun, 3 Feb 2013 14:27:20 -0800 Message-ID: To: Nikita Popov Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlRLeOJ2hNUdxxP4MCumYVrR1ZyIb4WPLUcvHZDeW/rxY1cV17t6l8rNYDVRG+RnyEe9Fgd Subject: Re: [PHP-DEV] Proposal for serious BC compatibility aka language versioning From: karoly@negyesi.net (Karoly Negyesi) Hm, there is a slight miscommunication which is my fault. I do not suggest a PHP engine being compatible with 5 and 6, gosh, no. I suggest a PHP engine compatible with 5.3 and 5.4. Is that a maintenance mess too? The difference should be a lot, lot smaller. And yes, interaction is a problem and again I'd be glad to discuss on how to behave for those. Regards NK On Sun, Feb 3, 2013 at 2: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 > 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 >