Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72887 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67068 invoked from network); 1 Mar 2014 14:20:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2014 14:20:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.169 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.169 mail-we0-f169.google.com Received: from [74.125.82.169] ([74.125.82.169:65014] helo=mail-we0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/10-65341-19CE1135 for ; Sat, 01 Mar 2014 09:20:01 -0500 Received: by mail-we0-f169.google.com with SMTP id t61so1544776wes.0 for ; Sat, 01 Mar 2014 06:19:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=GaD3OtMIbjYWHu25QhUTeYD6T4LKAt1dItQR5FY09QY=; b=0id+i73X0PNtxTirLoTjSHssnkOpT2Ry2N2xgt+b/22cW/fXo5vO1IsLfeclT4P6WB jkLRYZI/khHFYLTM5CIWl9RlqqtTQNLpGklI149ED3RrtNkDzbWSRSiIonWSOhZeqju2 OWLYOXkO2Q8+s9HbWFtAk2pZltjM6L+s6CqtZ+KvCDiqinKdwHz1Hr6vZi0jm1qVjPGe ApQRWA8wJ1GPGf76AWYg4WxjJqOsrDkBKCxF8tGoXIk/SE4KqPleCH2Nvcj3T3HL5W25 f4Xp1s7GOfvEjjENbPGX5BuepWzkz9qROlPYmzwEKO7paC04vomZs4KUE/aebOp1Jpe/ +UxQ== X-Received: by 10.180.25.46 with SMTP id z14mr7077369wif.49.1393683597658; Sat, 01 Mar 2014 06:19:57 -0800 (PST) Received: from [192.168.0.2] (cpc19-brig17-2-0-cust25.3-3.cable.virginm.net. [81.101.201.26]) by mx.google.com with ESMTPSA id ga20sm15916077wic.0.2014.03.01.06.19.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Mar 2014 06:19:56 -0800 (PST) Message-ID: <5311EC85.50701@gmail.com> Date: Sat, 01 Mar 2014 14:19:49 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: internals@lists.php.net References: <5310F8BF.8090503@oracle.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Add support for PCRE marks From: rowan.collins@gmail.com (Rowan Collins) On 01/03/2014 00:30, Nikita Popov wrote: > It's a bit ridiculous that you can end up using a PHP > version from 2014 together with a decade old PCRE version. That's an interesting way of looking at it. I don't know enough about the specifics of this case, but the general idea feels close to a conversation I had with a colleague the other day, in which he argued that it doesn't make sense to restrict a new project to an already out-of-date library just because that's what we're using elsewhere. Since we were discussing CSS frameworks, any upgrade of old projects would mean the site was getting a complete overhaul anyway - in the same way that a PHP 5.6 package would be expected to come with either a complete release of the distro, or some way of resolving "too new" dependencies. I also think that many PHP *users* don't realise just how tightly PHP's extensions expose the specifics of a particular version of a 3rd-party library. They might look at the documentation to check that a particular function or option was added in PHP 5.4 or 5.5, but they probably wouldn't even consider checking what version of PCRE (or libxml, etc, etc) their system had, until they found something in their code mysteriously "broke" on a particular environment. From that point of view, the user-friendly approach for a PHP extension is to either *require* a newer version of a library, or expose only the "lowest common denominator" of functionality, so that the documentation can confidently say "in PHP 5.6, you can do this". Like I say, I don't know about the specifics of this case, so raising the requirement may or may not be the right decision here, but it seems like a useful line of thought. Regards, -- Rowan Collins [IMSoP]