From 3749017471f88593b20b0eb8e92992fcb56244a1 Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Tue, 4 Feb 2025 16:14:14 +0100 Subject: [PATCH] [tests] run 10592 test for PHP >= 8.2 --- tests/unit/src/unitstd/EReg.unit.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/src/unitstd/EReg.unit.hx b/tests/unit/src/unitstd/EReg.unit.hx index 042b9837308..29ed7889046 100644 --- a/tests/unit/src/unitstd/EReg.unit.hx +++ b/tests/unit/src/unitstd/EReg.unit.hx @@ -120,7 +120,7 @@ new EReg("^" + EReg.escape("\\ ^ $ * + ? . ( ) | { } [ ]") + "$", "").match("\\ ~/(\d+)/g.replace("a1234b12","$$1") == "a$1b$1"; // #10592 - null character -#if (!hl && !php) +#if (!hl && (!php || php_ver >= 8.2)) var containingNull = new EReg("abc\x00def", ""); containingNull.match("abc") == false; containingNull.match("abc\x00def") == true;