Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99038 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24432 invoked from network); 15 May 2017 10:12:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2017 10:12:14 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-oi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:36226] helo=mail-oi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/B7-15531-CFE79195 for ; Mon, 15 May 2017 06:12:12 -0400 Received: by mail-oi0-f42.google.com with SMTP id h4so124397157oib.3 for ; Mon, 15 May 2017 03:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C5VpCCyDhEH1jw6VghWDRQB9pCMNb/8Oy8Ta9PXWp+M=; b=bvLIztyOOiF5vhmMaHSgHdYvIzbtVG51BHrSY9V/ZZV/Gs4kAWgNltt0Xe8RfR02GV klTaUoVr3WeqtJCIEU4+goQWAPL1OFWVuUhfxzmtbSjVn2ShM2z2OqfA3XzyBX5AIhMX xz+8tCN8U6sPNK1nqeumqhUtsmqWkCsywr5CAaKszkA61KXClNXKsYK7ijTCBAgaX9pJ URXFH9o4M/QsnmYUN7QZF7yVwp0guETX9vPpzUSWgUoskWVrpipPLqiVCM1EZE2Ai6uc A6LIng/TEBoTqDaApzZtHHh8XWAuCUUlj4bnKh2imVPZeNOZZHwopWOVEuYkBTEF/ort qJTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=C5VpCCyDhEH1jw6VghWDRQB9pCMNb/8Oy8Ta9PXWp+M=; b=gMekfiXtKW1Ziy1Hj1kwIQsSQeRLikTyCMUSSRgEwZpwInoDoAjF1iQTXwsi8l7Aj8 gHAo3rk91jGDWTmMYoEG4BMyTqRGkIZ41xCOM3pfPg/sRzFkBDfEFhS8eLIXRfkc1NIZ AzE52MVLxNeUHfbsLfGRJxLd119qZ2QkGR6PBrCRWINDhNYfp1THppBf8Sn9XgaZ10ve R21fvPUv7d0Vyt4BeLDHouqfXYwT5Z9Rvykm+cSYhZfb0OgU2nFYQDrgDk75/l32yCU9 qLeN0GGlUbXyoPGLJ97dpzBMdhKupgvmJLv0f4EHvrc9L5XN+LC+rvYHacWxwcL8hBCZ Xkjg== X-Gm-Message-State: AODbwcD/Sd9h54Yz1oepN5rpx+fQGIjNaTNiykw5Mt5z2hVJIke0gdoE VhHpVYCs+z20Z8Kxsc+z3fnghaU6gg== X-Received: by 10.202.169.142 with SMTP id s136mr2411245oie.95.1494843129620; Mon, 15 May 2017 03:12:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.50.136 with HTTP; Mon, 15 May 2017 03:12:09 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 May 2017 17:12:09 +0700 Message-ID: To: Nicolas Grekas Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] BC break in master (7.2) - Distinguish between unmatched subpatterns and empty matches in preg_*() From: pierre.php@gmail.com (Pierre Joye) hi Nicolas, On Mon, May 15, 2017 at 1:57 PM, Nicolas Grekas wrote: > Hi, > > in master, feature request https://bugs.php.net/61780 has been implemented > and merged into master thanks to https://github.com/php/php-src/pull/1303 > > But as noted in the PR and even in the UPGRADING file, this is a BC break: > . preg_match() and other PCRE functions now distinguish between unmatched > subpatterns and empty matches by reporting NULL and "" (empty string), > respectively. Formerly, either was reported as empty string. > > While trying to run Symfony's test suite against 7.2, we noticed that this > BC break is hitting several components badly. If Symfony is hit, there will > be many more userland code impacted for sure. > > As written explicitly in the releasing policy of php-src, BC breaks must > not happen in minor versions. Therefore, I'm kindly but strongly asking for > this BC break to be reconsidered and removed. I agree that a minimum 5 years old possible bug, quite small, causing BC breaks is not good. As far as the fix is critical or justified, I think it is sometimes ok to break BC for edge cases. However I do not see this is not the case here. @RMs revert for 7.2 and re evaluate for later? Cheers, -- Pierre @pierrejoye | http://www.libgd.org