[php-src] PHP-8.4: [skip ci] Fix mb_ereg_replace_kname_unterminated_nul.phpt SKIPIF
| From: | Ilija Tovilo | Date: | Fri, 25 Sep 2026 15:11:13 +0000 |
| Subject: | [php-src] PHP-8.4: [skip ci] Fix mb_ereg_replace_kname_unterminated_nul.phpt SKIPIF | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141564@lists.php.net to get a copy of this message | ||
Author: Ilija Tovilo (iluuu1994)
Date: 2026-09-25T17:08:49+02:00
Commit: https://github.com/php/php-src/commit/ead145b4bae88f16c416cb9a153bdc41b1ce3e70
Raw diff: https://github.com/php/php-src/commit/ead145b4bae88f16c416cb9a153bdc41b1ce3e70.diff
[skip ci] Fix mb_ereg_replace_kname_unterminated_nul.phpt SKIPIF
mbregex is not always available.
Changed paths:
M ext/mbstring/tests/mb_ereg_replace_kname_unterminated_nul.phpt
Diff:
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 67a39dc9f95c..1783b40ab5c9 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')));