Repository navigation
Commit 06d8d3d
committed
Tests: Replace deprecated
Oniguruma, which is the regex engine behind the `mbstring` extension, ended maintenance in April 2025. Since the PHP project can no longer expect upstream security fixes on it, all `mbstring` regex functionality is deprecated in PHP 8.6, including the `mb_ereg*()` family and `mb_split()`, with removal in PHP 9.0.
A PECL package, `mb_onig`, has been created for those who rely on this functionality, but the recommendation is to use PCRE functions with the `/u` modifier instead.
This commit replaces the only three instances of `mb_split()` in WordPress core test suite with `preg_split()`.
References:
* [https://wiki.php.net/rfc/eol-oniguruma PHP RFC: Oniguruma maintenance end and end of mbregex]
* [https://www.zend.com/blog/php-8-6#what-deprecations-come-with-php-8-6 Zend: What's New in PHP 8.6: Features, Changes, and Deprecations]
Follow-up to r54530.
Props arshidkv12, SergeyBiryukov.
Fixes #66137.
git-svn-id: https://develop.svn.wordpress.org/trunk@63768 602fd350-edb4-49c9-b593-d223f7449a82mb_split() with preg_split() in date query tests.1 parent 86b922f commit 06d8d3d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | | - | |
| 1187 | + | |
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
| |||
1231 | 1231 | | |
1232 | 1232 | | |
1233 | 1233 | | |
1234 | | - | |
| 1234 | + | |
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
| |||
1277 | 1277 | | |
1278 | 1278 | | |
1279 | 1279 | | |
1280 | | - | |
| 1280 | + | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| |||
0 commit comments