Re: [DISCUSSION] Deprecate mbregex in PHP 8.6 and maintenance version

From: Date: Thu, 19 Mar 2026 01:26:44 +0000
Subject: Re: [DISCUSSION] Deprecate mbregex in PHP 8.6 and maintenance version
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-130398@lists.php.net to get a copy of this message
On Tue, 17 Mar 2026 at 20:55, youkidearitai <youkidearitai@gmail.com> wrote: > 2026年3月18日(水) 2:31 Kamil Tekiela <tekiela246@gmail.com>: > > > > On Tue, 17 Mar 2026 at 17:07, Hans Henrik Bergan <divinity76@gmail.com> > wrote: > > > > > > > > > > > > On Tue, 17 Mar 2026 at 09:43, youkidearitai <youkidearitai@gmail.com> > wrote: > > >> > > >> 2025年8月26日(火) 19:15 Derick Rethans <derick@php.net>: > > >> > > > >> > 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. > > > > > > > > > Which users, exactly? > > > > > > Where in the wild are people using something other than ANSI, Unicode, > and UTF-8? > > > > > > Been 10 year since I was involved with a system reliant on > Windows-1252, and the first thing I did after getting hired was to convert > it to UTF-8 > > > (Norway, a system written in PHP requiring æøåÆØÅ support running on > Windows-1252~) > > > > I found this example on Wikipedia > > view-source:https://kakaku.com/ > > https://kakaku.com/ Wow, you're right, kakaku.com really does run on shift_jis. Neat. ( Kakaku.com runs on C-sharp and ASP.net, not PHP, though: https://kakaku-techblog.com/entry/compare-rust-with-csharp ) > Hi > I explain why create mb_onig package. > > First, many users reported depends on Oniguruma and mbregex. > For example, Phiki https://github.com/phikiphp/phiki users > reported. > > https://github.com/php/php-src/pull/19258#issuecomment-3249570139 > In Wikipedia, we can see many depends on Oniguruma. > https://en.wikipedia.org/wiki/Oniguruma > > Second, FreeBSD supports end Oniguruma in Dec 2026(this year). > > https://github.com/php/php-src/pull/19258#issuecomment-3506659061 > > Therefore, FreeBSD can't compile mbregex after Dec 2026. > I want to avoid it. > > > > Been 10 year since I was involved with a system reliant on > Windows-1252, and the first thing I did after getting hired was to convert > it to UTF-8 > This point is good perspective, Not opensource products maybe depends > mbregex in old codes. > It is maintenance very long time.(My company products depends mbregex) > > So I want to maintenance Oniguruma and mbregex other way. > My solution(mb_onig) is one way. > > Regards > Yuya > > -- > --------------------------- > Yuya Hamada (tekimen) > - https://tekitoh-memdhoi.info > - https://github.com/youkidearitai > ----------------------------- > I see. Wish you the best of luck.

« previous php.internals (#130398) next »