summaryrefslogtreecommitdiff
path: root/ext/pcre/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-09-19 12:37:57 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-09-21 10:28:22 +0200
commitd27dc5c028637edaf4d1511613cc33e7e164bd6e (patch)
tree3ac034fd7b7addf8382e65e509f7f53f53a1898c /ext/pcre/tests
parent105132bd6b924c253ca6db5cf7f3ecfcf9fa3300 (diff)
downloadphp-git-d27dc5c028637edaf4d1511613cc33e7e164bd6e.tar.gz
Fix #80118: Erroneous whitespace match with JIT only
We backport r1273[1] from PCRE2. [1] <https://vcs.pcre.org/pcre2?revision=1273&view=revision> Closes GH-6165.
Diffstat (limited to 'ext/pcre/tests')
-rw-r--r--ext/pcre/tests/bug80118.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug80118.phpt b/ext/pcre/tests/bug80118.phpt
new file mode 100644
index 0000000000..5de66076e0
--- /dev/null
+++ b/ext/pcre/tests/bug80118.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #80118 (Erroneous whitespace match with JIT only)
+--FILE--
+<?php
+preg_match('~[^\p{Han}\p{Z}]~u', ' ', $matches);
+var_dump($matches);
+?>
+--EXPECT--
+array(0) {
+}