mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: Fix GH-11956: PCRE regular expressions with JIT enabled gives different result
This commit is contained in:
commit
55432bfa16
1 changed files with 16 additions and 0 deletions
16
ext/pcre/tests/gh11956.phpt
Normal file
16
ext/pcre/tests/gh11956.phpt
Normal file
|
@ -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"
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue