Skip to content

Commit

Permalink
Merge branch 'PHP-8.2' into PHP-8.3
Browse files Browse the repository at this point in the history
* PHP-8.2:
  Fix GH-11956: PCRE regular expressions with JIT enabled gives different result
  • Loading branch information
nielsdos committed Sep 18, 2023
2 parents 639bcb4 + 15bbae7 commit 1bed209
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ext/pcre/tests/gh11956.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--TEST--
GH-11956 (PCRE regular expressions with JIT enabled gives different result)
--INI--
pcre.jit=1
--FILE--
<?php
preg_match( '/<(\w+)[\s\w\-]+ id="S44_i89ew">/', '<br><div id="S44_i89ew">', $matches );
var_dump($matches);
?>
--EXPECT--
array(2) {
[0]=>
string(20) "<div id="S44_i89ew">"
[1]=>
string(2) "di"
}

0 comments on commit 1bed209

Please sign in to comment.