xref: /PHP-8.3/ext/pcre/tests/bug76909.phpt (revision c5401854)
1--TEST--
2Bug #76909 preg_match difference between 7.3 and < 7.3
3--SKIPIF--
4<?php
5if(!ini_get("pcre.jit")) {
6    echo "skip JIT is disabled";
7}
8?>
9--FILE--
10<?php
11
12$data = " domain.com";
13$reg0 = "/^[\x{0100}-\x{017f}]{1,63}$/iu";
14$reg1 = "/(*NO_JIT)^[\x{0100}-\x{017f}]{1,63}$/iu";
15
16$n0 = preg_match($reg0, $data, $m0);
17$n1 = preg_match($reg1, $data, $m1);
18
19var_dump($n0, $n1, count($m0), count($m1));
20
21?>
22--EXPECT--
23int(0)
24int(0)
25int(0)
26int(0)
27