Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130380 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id C746D1A00BC for ; Tue, 17 Mar 2026 08:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1773736817; bh=GiH+A+tVGQd45H9G6WEQCBqLJK5vvXr+jgniO4b8Jrs=; h=References:In-Reply-To:From:Date:Subject:To:From; b=FGMI3YHYdUt4PFfWRfa1fAn4cGM3hAzEoEpnglIFqE6emgmOK0/SJ3ByaUoDe4eKY gfAx3DMJrsPirJnFEdz76Hzqpc5BK7OAiH7Y7vo4WKTmNZxwgTt2/9PYNlvOifvalk 8fsOxdrDw27ZDQ9+J8uszFaMFcYKrzPIQ/zP3XLG7aUodoDqMblW7pL4KvJfoQm34P Y2x53fHkVfgkUvj1YnyQBxt0UyUgJ4gR8SKNxcoF0hObk/jTXSDL4xwVyRQFqi1Wa7 4XU0qABl0GZA1iFSPX5jtg0vdWnYl3JFDouut112OpEkBy2ODa+eHDpUuCUHudUbRS ecnBY5bOwmOBQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CC8E01801D6 for ; Tue, 17 Mar 2026 08:40:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FORGED_GMAIL_RCVD,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 17 Mar 2026 08:40:16 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-43b48ac2727so898410f8f.3 for ; Tue, 17 Mar 2026 01:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773736810; cv=none; d=google.com; s=arc-20240605; b=UBpJb59poEB+gK6Q/U3GYY2t6EPko43VMEm8tcHravLL4KRpzIq09mXtn/MGrI1rYe 0H9vfq0L6yvXu6NE82zx1LPWuPHX808OTHTuI9kgC9wJPRAbjNu08CjdTzCOrtDeNx2U e6Jgl/PjzEkkvQTBaObEBsEWRzOCIqdmSuLM+pViCXPYJztBTzv3EnsB8bZ2jeOIXpvZ 6kIH2di4Xv/LEehSPjayG8EAfu4Hsm6wx4LoD78z7U+Otl6tny0qH8gWkgJaE++lrt9Z D8grI7D2AMydpzYcj/cnReUTz6PlMv4OAhOzR+pJEiklpf8yTqkvp4RWqAu/oq+UQZE/ LLhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gFqziIXeIWT6kEkoya+swHxho/cZ2tAQ4HiEgIB2u2M=; fh=RnZ+4KjfdZdxwVfzmjFoBvUAaJ227RJecqE9MM9tvfQ=; b=b5kupKnG8ZduF0dmyYWogeIfAABWcpq5dkHjc5GJBGkbsfNrstFqRjkMxEM4yAEowx nSArWTh9Ng9eooMlOY2SXSaZdHxYzFFxb6aHZfpZGwjtqGe0/fkxPXkCj4YGe3F0uaHJ FPDXUllRtZz0QaaSxY3lgB3RJBoFiEHVvCWs+nHg+iUaFKG+B2JVmy1ifjt/uaQk0oIj VYBPiSrAe0WhDCpssCX/wO50MntUrmL4RlwBOGXSQypbpYRbfMKS0hOEjcW4fYZLrFgL e2pexH1JRKPwv95eyTHqnI2ZMjs6JgTWkl9j18SH9oyWiH6pnXGh+PQj6aUGwsRMRvfH K9UQ==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773736810; x=1774341610; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gFqziIXeIWT6kEkoya+swHxho/cZ2tAQ4HiEgIB2u2M=; b=l3Z/IZ7yWHr+St2tkIShJuvnp8a1S9fjXB+4hnw5bWCVpDRn76qFT825EexZ8f1Y0A dvpHVXEiOjipMXnaKNop3zbmvwn0epBF006IRDcnZ9Mt/Q6eEAlby2XZblixW1H9AkCb RMlnlWhqbVOB3f/3ctFHn+M7GCMrP2veO6V6rlUaO1Wc2/2GalJ8YHO64rTeXTBcAPo3 Ty/3TanUa9/HXSyQfp3fQmb6wZnpyjg8Xd7GdiM8N9aQwCaIWRWUj7rK6U7eP9Y1L0tt l8A6QUI3XBsu/vpdb1ffhhsKwSQ/k9jpJsmXZlgk3UoGvHR/xIErRhtmpsWXWO4iySz7 9hJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773736810; x=1774341610; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gFqziIXeIWT6kEkoya+swHxho/cZ2tAQ4HiEgIB2u2M=; b=f5WMDZu/5HhQjMRUJ/8CZ3IDPqkgpNuIPvhuULuCzde5XUAQg3bjlPuH7wTXeBa4YP VJf8rMxqgxgsBJ6CTiQOjR88bjwn0mT4OTwfopw9OwdWkwZto3MIU2YAT7dLftiUDRPv jQpmm8WeGr6miu7ELqAbmVC+3Iyopq8hNE1+Dwi7BVoCOK7aH44F8T2dAjvKPFlnpvgC HD5QTCa4TyvQdnjO3eBDUweJJuELox5F8Tdjiiyghrj8bfJhMZIKsF6W0BAo1UyB+Ukd 3LSzRdzrJd1QCj8wMK+u7iuXxoHBTKXvo8SbobePzG9EqVPhc7rl/VpYyrPrAo8avAl5 exWA== X-Gm-Message-State: AOJu0YyPhjlsWXtTkcA73m2oU2PYh/lMEymKdaAwjhBDC5ou4LY5KFEs YIc+I3fhLkKlRW74c5EtS3SajnArxJ1a3ctFu/i4+AOvdKq83H1/6dVOuSWZXaTUVnpbJWM1TmJ UcnZOmnZ9/A9gSoa2yTQ7KGM+iQnGrWklLVtx+A== X-Gm-Gg: ATEYQzzEalT4MjZXnT+Yu8g7ir+q++xrwa/taf0AsXVMG7AyxBLfUH2sI89rSop4f7w f7O8VLJpef3g0OLj088TtSV1PhVyVYn+Us/qsp4xyV4Uq66Qk087h+x7H8sn3M7tNEvqBBwenL5 ZrICiyNfNrkrkFKUgEY4Xj5x5xutE/zTDtMOqTAyVQagUVgqAplhT9Fsd8rlB7ryX9eTGMHwcQX 2+2Igei3mwAqOPALP/iY89tybLy3GZwPc8A7429Ek0Ynb8y41r+4kocB6T+MpcOg5N3pGvO/fVq M876gHnXcEk/xKVfpqHMKiwL0U9HViYl X-Received: by 2002:a5d:5f49:0:b0:43b:498f:dcf0 with SMTP id ffacd0b85a97d-43b498fdf0bmr4250394f8f.9.1773736810169; Tue, 17 Mar 2026 01:40:10 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <8d1d90e2-b2db-421a-babe-f915dc06b76d@gmx.de> In-Reply-To: Date: Tue, 17 Mar 2026 17:39:57 +0900 X-Gm-Features: AaiRm53zvy7UDMKqhi7x3f4v-5TQS-N1w2y77GtYprOjZtWLu_saxyJzdQR78Ac Message-ID: Subject: Re: [PHP-DEV][DISCUSSION] Deprecate mbregex in PHP 8.6 and maintenance version To: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: youkidearitai@gmail.com (youkidearitai) 2025=E5=B9=B48=E6=9C=8826=E6=97=A5(=E7=81=AB) 19:15 Derick Rethans : > > On Mon, 25 Aug 2025, Christoph M. Becker wrote: > > > On 25.08.2025 at 09:26, youkidearitai wrote: > > > > > I improvement this RFC. https://wiki.php.net/rfc/eol-oniguruma > > > > > > Added more information about maintenance versions. What do you think > > > about Oniguruma maintenance ended. Please watch and feel free to > > > comment. > > > > First, thank you for caring about this! I agree that we need a long > > term solution for this issue. As I understand it, Oniguruma's > > greatest advantage over PCRE2 is that it supports other character > > encodings than Unicode and ANSI, so deprecating mbregex might be a > > problem for some users. > > Yes, but I think Yuya mentioned somewhere else (I can't find it now) in > an earlier discussion, that many of these users now also moved to UTF-8. > It would also be possible to rewrite these uses from using mbregex to > UConverter::convert+pcre. > > Incidently, icu also has a regular expression engine, but of course > that'll operate on UTF-16, and we'd have to create a full new > implementation for that: > > - https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/uregex_8h.= html > > > Still, the alternative would likely be to bundle liboniguruma, and I > > don't think that would be a good idea. So deprecating mbregex as of > > PHP 8.6.0 seems prudent; if there would be lots of objections, we > > could still reconsider. > > I agree with that. > > > Now I wonder how much trouble it would be to separate mbregex from > > ext-mbstring. If that can be done with a reasonable amount of work, > > that would likely be the best course of action (in addition to > > deprecating mbregex). We could than move the extension to PECL/PIE, > > and let users deal with it (I'm not happy what happened to ext-imap, > > but it's still better than relying on an unmaintained library from a > > bundled extension). > > Seeing code like in mbstring.c > > #ifdef HAVE_MBREGEX > PHP_MINIT(mb_regex) (INIT_FUNC_ARGS_PASSTHRU); > #endif > > And: > > php_mbregex.h:PHP_MINIT_FUNCTION(mb_regex); > php_mbregex.h:PHP_MSHUTDOWN_FUNCTION(mb_regex); > php_mbregex.h:PHP_RINIT_FUNCTION(mb_regex); > php_mbregex.h:PHP_RSHUTDOWN_FUNCTION(mb_regex); > php_mbregex.h:PHP_MINFO_FUNCTION(mb_regex); > > makes it feel that it already sort-of operates as a sub-extension, and > it wouldn't be *too* much work. But it will still be work. Is it worth > it? > > cheers, > Derick > -- > https://derickrethans.nl | https://xdebug.org | https://dram.io > > Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/sup= port > > mastodon: @derickr@phpc.social @xdebug@phpc.social Hi, Internals I created extension mb_onig that separate mbregex functions. This package include Oniguruma that my update(Unicode 17.0). https://packagist.org/packages/mb_onig/mb_onig (This package is experimental) With this idea, I think it would be good to separate mbregex. What do you think? Regards Yuya --=20 --------------------------- Yuya Hamada (tekimen) - https://tekitoh-memdhoi.info - https://github.com/youkidearitai -----------------------------