mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01: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:
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"
|
||||
}
|
||||
Reference in New Issue
Block a user