Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73244 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75323 invoked from network); 17 Mar 2014 21:52:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2014 21:52:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.172 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.172 mail-ob0-f172.google.com Received: from [209.85.214.172] ([209.85.214.172:34498] helo=mail-ob0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/92-17561-18E67235 for ; Mon, 17 Mar 2014 16:52:02 -0500 Received: by mail-ob0-f172.google.com with SMTP id wm4so6266634obc.31 for ; Mon, 17 Mar 2014 14:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AlbWyWEQ22bw2QikpOrSa5o2+NJFc9Vk5ikj5y/GlYg=; b=feVqlHSRg6yw4BlwEsQXBtQ6qPHwIWyS7zsCbwPs6uXlGUzi4jN2ZM6yedreIv8qa0 1UaUtCciW7sC/j359hqmYXVA9TfKFcuDbrIlZ3ZMhj41gqwUHejYYrTdLiwEORq4Qns/ jd4NiYF0zpdZMsW0B99RdnRaEIjRV88lqectUvZrSht0mZdYlXdIbHItWvcSQmK/TqR4 dUNQjTblnDb7kfkZwsioQfNg450ltuRjuJVvsbNPtduj6l18xDKyGGH7CV0vCcbabCjk 2pbxghuMGiIJ/yDmDL0n8U2WYaXPIrM7bmW+lYjufh7T42w9ufRMKWfftQkDB6VVM5tq s9Cg== MIME-Version: 1.0 X-Received: by 10.182.16.33 with SMTP id c1mr23035002obd.4.1395093118809; Mon, 17 Mar 2014 14:51:58 -0700 (PDT) Received: by 10.182.69.101 with HTTP; Mon, 17 Mar 2014 14:51:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 Mar 2014 22:51:58 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=f46d04479f93c67ab504f4d46da3 Subject: Re: Add support for PCRE marks From: nikita.ppv@gmail.com (Nikita Popov) --f46d04479f93c67ab504f4d46da3 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Feb 28, 2014 at 9:37 PM, Nikita Popov wrote: > Hi internals! > > I wrote a patch to expose PCRE mark information in PHP, see > https://github.com/php/php-src/pull/609/files. The last passed *MARK will > be added to the $matches array under key "MARK". If you don't use marks > everything stays exactly the same. > > Does anyone have a problem with exposing it in this way? > > In this context, would there be a problem with increasing the minimum > required PCRE version (for builds against an external library) from 6.6 to > 8.10 (the current, bundled version is 8.34)? That would avoid adding > #ifdefs for this code. Is there some particular reason for 6.6 here? > I merged this with ifdefs for now (ping me if you have build issues, I didn't actually test this). It would still be nice to increase the minimum version number for 5.6, because allowing prehistoric PCRE versions in a new release makes zero sense. I recommend at least 8.10 because it both supports marks and - more relevantly to most users - supports UCP mode, which PHP uses by default (if available). UCP mode can significantly change the behavior of PCRE with the /u modifier, as such guaranteeing a minimum version of 8.10 will also guarantee a somewhat consistent /u behavior. Nikita --f46d04479f93c67ab504f4d46da3--