xref: /php-src/ext/pcre/tests/gh11956.phpt (revision d61efdfe)
1--TEST--
2GH-11956 (PCRE regular expressions with JIT enabled gives different result)
3--INI--
4pcre.jit=1
5--FILE--
6<?php
7preg_match( '/<(\w+)[\s\w\-]+ id="S44_i89ew">/', '<br><div id="S44_i89ew">', $matches );
8var_dump($matches);
9?>
10--EXPECT--
11array(2) {
12  [0]=>
13  string(20) "<div id="S44_i89ew">"
14  [1]=>
15  string(2) "di"
16}
17