|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-02-22 08:03 UTC] martin dot adolfsson at movel dot se
Description:
------------
Attempting to use external PCRE library (7.6), configured with
--enable-static
--disable-shared
--enable-utf8
--enable-unicode-properties
--disable-cpp
in PHP 5.2.5, configured with (among other options):
--with-pcre-regex={PATH_TO_PCRE_INSTALLATION}
Results in calls to preg_match() with /u modifier triggering an error and stating that "this version of PCRE is not compiled with PCRE_UTF8 support".
Reproduce code:
---------------
preg_match('//u', '' );
Expected result:
----------------
<empty>
Actual result:
--------------
preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in ...
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
Might add some details from pcre-7.6: pcre-7.6 configuration summary: ... Enable UTF-8 support ............ : yes Unicode properties .............. : yes ... ----[src/pcre_tables.c]-------------- #ifdef SUPPORT_UTF8 const int _pcre_utf8_table1[] =... ..... ----[src/pcre_tables.c]-------------- $ strings lib/libpcre.a | grep pcre_utf8_table1 _pcre_utf8_table1 ... So AFAIK, PCRE has been built successfully w/ UTF-8 support.