Skip to content

Commit

Permalink
[tests] run 10592 test for PHP >= 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Feb 4, 2025
1 parent 67ab779 commit 3749017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/src/unitstd/EReg.unit.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3749017

Please sign in to comment.