Skip to content

Commit 1bed209

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix phpGH-11956: PCRE regular expressions with JIT enabled gives different result
2 parents 639bcb4 + 15bbae7 commit 1bed209

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ext/pcre/tests/gh11956.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
GH-11956 (PCRE regular expressions with JIT enabled gives different result)
3+
--INI--
4+
pcre.jit=1
5+
--FILE--
6+
<?php
7+
preg_match( '/<(\w+)[\s\w\-]+ id="S44_i89ew">/', '<br><div id="S44_i89ew">', $matches );
8+
var_dump($matches);
9+
?>
10+
--EXPECT--
11+
array(2) {
12+
[0]=>
13+
string(20) "<div id="S44_i89ew">"
14+
[1]=>
15+
string(2) "di"
16+
}

0 commit comments

Comments
 (0)