php-src icon indicating copy to clipboard operation
php-src copied to clipboard

Oniguruma maintenance was ended 2025-04-24

Open youkidearitai opened this issue 1 year ago • 8 comments

Description

Onimuruma was ended on 2025-04-24. https://github.com/kkos/oniguruma

This library uses mbregex in php-src.

How do we do that?

I send internal mailing list too.

youkidearitai avatar Apr 30 '25 05:04 youkidearitai

I send internal mailing list too.

For reference: https://externals.io/message/127245

TimWolla avatar Apr 30 '25 15:04 TimWolla

Commenting here to stay updated on this Issue.

FYI: The FreeBSD Ports tree has set an expiration date of 2026-12-01 for oniguruma-6.9.10. That means that by this date, the mbstring extension would also drop from FreeBSD Ports, which in my case would negatively impact the use of Roundcube Webmail.

emtiu avatar Jul 07 '25 09:07 emtiu

Unbundle Oniguruma commit: d1c1481081ef6280bf403b290501ca62d736cb8b I think one way --with-onig should be revived.

youkidearitai avatar Jul 24 '25 02:07 youkidearitai

@emtiu Same here. I'm running software on FreeBSD, that depends on php83-mbstring. This depends on oniguruma.

The daily security output mail includes:

Security check:

Checking for packages with security vulnerabilities:
Database fetched: 2026-01-15T21:30+01:00
oniguruma-6.9.10: Tag: expiration_date Value: 2026-12-01
oniguruma-6.9.10: Tag: deprecated Value: Project archived upstream

-- End of security output --

thenktor avatar Jan 16 '26 10:01 thenktor

@emtiu Same here. I'm running software on FreeBSD, that depends on php83-mbstring. This depends on oniguruma.

If you build your own packages, you can try to compile php83-mbstring without oniguruma bindings. You can do this if you disable the REGEX option for the package. Then, php83-mbstring will not depend on oniguruma.

However, that didn't help in my case, because my PHP application (roundcube) breaks without oniguruma.

emtiu avatar Jan 23 '26 09:01 emtiu

Please consider my workaround: https://github.com/php/php-src/pull/19258#issuecomment-4032211143

youkidearitai avatar Mar 11 '26 00:03 youkidearitai

https://github.com/php/php-src/pull/19258#issuecomment-4073024794 You can try pie install mb_onig/mb_onig (please without --disable-mbregex)

youkidearitai avatar Mar 17 '26 07:03 youkidearitai

Update on this issue from FreeBSD (see https://www.freshports.org/devel/oniguruma/)...

It seems that a FreeBSD maintainer has removed the DEPRECATED status of their oniguruma package, stating: "Remove DEPRECATED line because there are many consumers and consumers are not getting off oniguruma any time soon."

That doesn't change the fact that Oniguruma is unmaintained and if we keep it, we have to be ready to patch security bugs ourselves. (If anyone would like to jump in and contribute here, scanning Oniguruma for any genuine security bugs would be helpful and appreciated... it's better we know if any are there.)

alexdowad avatar Nov 09 '26 01:11 alexdowad