Skip to content

Commit

Permalink
Merge branch 'PHP-8.3'
Browse files Browse the repository at this point in the history
* PHP-8.3:
  Fix GH-11956: PCRE regular expressions with JIT enabled gives different result
  • Loading branch information
nielsdos committed Sep 18, 2023
2 parents f78c8b9 + 1bed209 commit 55432bf
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 55432bf

Please sign in to comment.