|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-09-17 17:44 UTC] danack@php.net
-Package: PCRE related
+Package: JIT
[2020-09-17 18:42 UTC] requinix@php.net
-Status: Open
+Status: Duplicate
-Package: JIT
+Package: PCRE related
[2020-09-17 18:42 UTC] requinix@php.net
[2020-09-17 21:45 UTC] danack@php.net
[2020-09-17 22:11 UTC] cmb@php.net
-Status: Duplicate
+Status: Open
[2020-09-17 22:11 UTC] cmb@php.net
[2020-09-18 08:52 UTC] cmb@php.net
-Status: Open
+Status: Suspended
-Assigned To:
+Assigned To: cmb
[2020-09-18 08:52 UTC] cmb@php.net
[2020-09-19 10:45 UTC] cmb@php.net
-Status: Suspended
+Status: Analyzed
[2020-09-19 10:45 UTC] cmb@php.net
[2020-09-19 10:46 UTC] cmb@php.net
[2020-09-21 08:30 UTC] cmb@php.net
[2020-09-21 08:30 UTC] cmb@php.net
-Status: Analyzed
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ The regular expression ~[^/p{Han}/p{Z}]~u will match a single character not present in the list below: -Any characters in the Han script. -Any kind of whitespace or invisible separator In fact, when pcre.jit is enabled, this regular expression will match a whitespace, which may be an incorrect match. pcre: PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 10.34 2019-11-21 PCRE Unicode Version => 12.1.0 PCRE JIT Support => enabled PCRE JIT Target => x86 64bit (little endian + unaligned) Directive => Local Value => Master Value pcre.backtrack_limit => 1000000 => 1000000 pcre.jit => 1 => 1 pcre.recursion_limit => 100000 => 100000 Test script: --------------- pcre_jit_off.php: <?php ini_set('pcre.jit', 0); preg_match('~[^\p{Han}\p{Z}]~u', ' ', $matches); var_dump($matches); pcre_jit_on.php: <?php ini_set('pcre.jit', 1); preg_match('~[^\p{Han}\p{Z}]~u', ' ', $matches); var_dump($matches); Expected result: ---------------- pcre_jit_off.php: array(0) { } pcre_jit_on.php: array(0) { } Actual result: -------------- pcre_jit_off.php: array(0) { } pcre_jit_on.php: array(1) { [0]=> string(1) " " }