thatch10
Karma: 0
|
Problems with regex - 2010/08/22 23:37
I am getting the error code 'Compilation failed: support for P, p, and X has not been compiled at offset 4' following an upgrade to Glossary 2.7.
I believe that reading around it is due to my server PRCE was compiled with the “–enable-utf8″ configure option but not compiled with the “–enable-unicode-properties” configure option which works in conjunction with the enable-utf8 option to add support for the ‘p’, ‘P’, and ‘X’ character classes
would it be better to to check for PHP UTF-8 support before using the following code which is causing the error
$words = preg_split('/((^p{P}+)|(p{P}*s+p{P}*)|(p{P}+$))/u', strip_tags($term), -1, PREG_SPLIT_NO_EMPTY);
I have requested the hosts of the serverfix for my use but not holding my breath.
Thatch10
|