Commit ead145b4bae for php
commit ead145b4bae88f16c416cb9a153bdc41b1ce3e70
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Fri Sep 25 17:08:49 2026 +0200
[skip ci] Fix mb_ereg_replace_kname_unterminated_nul.phpt SKIPIF
mbregex is not always available.
diff --git a/ext/mbstring/tests/mb_ereg_replace_kname_unterminated_nul.phpt b/ext/mbstring/tests/mb_ereg_replace_kname_unterminated_nul.phpt
index 67a39dc9f95..1783b40ab5c 100644
--- a/ext/mbstring/tests/mb_ereg_replace_kname_unterminated_nul.phpt
+++ b/ext/mbstring/tests/mb_ereg_replace_kname_unterminated_nul.phpt
@@ -2,6 +2,10 @@
mb_ereg_replace() with unterminated \k<name> backref must not embed a NUL byte
--EXTENSIONS--
mbstring
+--SKIPIF--
+<?php
+if (!function_exists('mb_ereg')) die('skip mbregex support not available');
+?>
--FILE--
<?php
var_dump(bin2hex(mb_ereg_replace('(\d+)', '\k<num', '123')));