Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99713 invoked from network); 24 Oct 2017 13:53:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2017 13:53:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.180 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.161.180 mail-yw0-f180.google.com Received: from [209.85.161.180] ([209.85.161.180:53073] helo=mail-yw0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/F2-58908-6F54FE95 for ; Tue, 24 Oct 2017 09:53:59 -0400 Received: by mail-yw0-f180.google.com with SMTP id w2so15120829ywa.9 for ; Tue, 24 Oct 2017 06:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=wn7PMZRp2zRAF3NCHchxKIAv1qe4A75G5MQmZotARQg=; b=Nm4P5nxnIOKYq1UkK0fOWnKX1P6PbQigYXYXlblHTLUUOMsft+a+4M1qM1RRLACx6d grvqC5X+iC1ptFzhNHtEH7AY+5+takPyW8VOPdQs3yV9Oa44BT87c8eHYqBwfRkIJ5fl /a861l8l3Vvf6ztEtttbY0CO4lDPYIE/GVkIX333a0pmoyF8BYkMEOW/LuLJeXWbef+Z YK1kKC0OIqtYrQZ0Re7sp/pOt2uxoAmViSKriL71YpGfpj0YFCHT1BepMLmdi5k93zGC QmUR1tF+uYp/w4xQiDssRyDgI7ZUaNAWSCTSsJmB+ytX9rPon3tELixbxjUsBFnQkbs6 ooPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=wn7PMZRp2zRAF3NCHchxKIAv1qe4A75G5MQmZotARQg=; b=Pf6Ww7IZNUJr6FYI3eAfHH2zuTsJSKJcFxgE/IMXaByUteB2rxm4gDRYWGRd3V84zf qAYNW7jvCwOjpWbDgPPd6GkZ1/ABxAh3jf/4qPkKQ2Tcrq01FqMEv9Sh03Skkn8mkrbW 6tQDkDAg4QMZVm5DuEs9g+fupR3tyC3ZCFWiNkAQxeL7GPUAK4zSUBayId+ImZ9jaAgp Prdxg2IAfkbeODc5HlPzUInL1uJpKau9RyYNy2ZXjnQkeAtBm6LdG7/P5wDiU2MBNICM DSo4RqeWSBOK5U9b9GYXI1DbXyVINfBBPJdP7+ZufINVLIPMrHv5fpRfyRIJsO1uSEub kMUg== X-Gm-Message-State: AMCzsaUmue2mksVc2odoN8IS3l9nEAcrXbJLDkBZ0nj/aTkPznMMsT7B UwXUw2GEPzKhtUR1Loq92F1Dz5HpG4ut2xg2EFU= X-Google-Smtp-Source: ABhQp+QWVDT6F/lGVaWRTa0Ox4jnQVXhB/+NrfRxxcY2bYxunRgK3v/H196M0BId5hgnIVIO+oU8b6+vUS9LnlADnIE= X-Received: by 10.37.170.139 with SMTP id t11mr10094399ybi.99.1508853235996; Tue, 24 Oct 2017 06:53:55 -0700 (PDT) MIME-Version: 1.0 Sender: jakub.php@gmail.com Received: by 10.129.92.196 with HTTP; Tue, 24 Oct 2017 06:53:55 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Oct 2017 14:53:55 +0100 X-Google-Sender-Auth: vFvNFwP2r34NBZak24iv5yMFI5Q Message-ID: To: Anatol Belski Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="94eb2c079a78265f81055c4b45a9" Subject: Re: [PHP-DEV] [RFC] PCRE2 migration From: bukka@php.net (Jakub Zelenka) --94eb2c079a78265f81055c4b45a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 23, 2017 at 10:07 PM, Anatol Belski wrote: > Hi Jakub, > > > -----Original Message----- > > From: jakub.php@gmail.com [mailto:jakub.php@gmail.com] On Behalf Of > Jakub > > Zelenka > > Sent: Monday, October 23, 2017 10:43 PM > > To: Anatol Belski > > Cc: internals@lists.php.net > > Subject: Re: [PHP-DEV] [RFC] PCRE2 migration > > > > Hey > > > > > > On Mon, Oct 16, 2017 at 9:17 AM, Anatol Belski > > wrote: > > > > > > Hi, > > > > I would like hereby to put the RFC about the PCRE2 migration for > the > > core https://wiki.php.net/rfc/pcre2-migration > > under discussion. A basic > > port is available here https://github.com/php/php-src/pull/2857 > > for a > > review. > > > > > > > > > > Sorry if that's a stupid question and I'm missing something important > but why do > > we need to still bundle PCRE2? > > > I ask such questions just for the fun of it all the time, that makes sens= e > to my character =F0=9F=98=8A > > The point of the RFC is the max BC. Currently PCRE is bundled. Otherwise, > the lib is essential for the core and thus needs to be always available. > For older distro versions like for example Debian Jessie or other OSes no= t > yet providing PCRE2 from the package management, that would be the only w= ay > to get a newer PHP version, even if compiled by hand. Except maybe when > libpcre2 were provided by a third party repo, or a PPA in the Debian > terminology. > > Another point on that is, even if a package is available on the target > platform - the bundled version is what is tested and highly recommended. > Builders can decide otherwise, but what we provide makes the point. Latel= y, > for example - the valgrind support is also essential, as a release versio= n > supplied by a distro likely wouldn't be built with valgrind support but > it's required to debug PHP issues. > > Otherwise, there's no need for bundling. This dependency is currently not > patched in the way it would be the only one to be required bundled. It is > simply handy to have it bundled for the development and compatibility. An= y > distribution can decide, whether they would use it bundled or external. > Well I think that all listed reasons for bundling could be applied to other libraries. For example we won't start bundling OpenSSL just because we won't to make the new functionality easily available. The debugging point can be also true there because distros won't ship version configured with -d. However one can easily compile the library in that way so I don't see it as a problem at all. Personally I'm not a big fan of bundling libraries unless there is some technical reason to do so (for example an unexposed API that is necessary for inner working of the extension). The number of PCRE2 releases and its size is of course much smaller than for example mentioned OpenSSL but it still seems a bit unnecessary to me. Anyway this is something that can be discussed separately as we already bundle PCRE so this is just a bundle replacement that actually reduces the number of bundled lines... :) Cheers Jakub --94eb2c079a78265f81055c4b45a9--