Skip to content

Commit 9c58ab3

Browse files
committed
Add test for bug #76909
1 parent 7a02ecb commit 9c58ab3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ext/pcre/tests/bug76909.phpt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--TEST--
2+
Bug #76909 preg_match difference between 7.3 and < 7.3
3+
--FILE--
4+
<?php
5+
6+
$data = " domain.com";
7+
$reg0 = "/^[\x{0100}-\x{017f}]{1,63}$/iu";
8+
$reg0 = "/(*NO_JIT)^[\x{0100}-\x{017f}]{1,63}$/iu";
9+
10+
$n0 = preg_match($reg0, $data, $m0);
11+
$n1 = preg_match($reg0, $data, $m1);
12+
13+
var_dump($n0, $n1, count($m0), count($m1));
14+
15+
?>
16+
--EXPECT--
17+
int(0)
18+
int(0)
19+
int(0)
20+
int(0)
21+

0 commit comments

Comments
 (0)