diff options
-rw-r--r-- | ext/pcre/tests/bug76909.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug76909.phpt b/ext/pcre/tests/bug76909.phpt new file mode 100644 index 0000000000..e98da4048c --- /dev/null +++ b/ext/pcre/tests/bug76909.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #76909 preg_match difference between 7.3 and < 7.3 +--FILE-- +<?php + +$data = " domain.com"; +$reg0 = "/^[\x{0100}-\x{017f}]{1,63}$/iu"; +$reg0 = "/(*NO_JIT)^[\x{0100}-\x{017f}]{1,63}$/iu"; + +$n0 = preg_match($reg0, $data, $m0); +$n1 = preg_match($reg0, $data, $m1); + +var_dump($n0, $n1, count($m0), count($m1)); + +?> +--EXPECT-- +int(0) +int(0) +int(0) +int(0) + |