Project

General

Profile

Actions

Bug #1622

closed

Userslists with php versions without utf8 support issues warning \P, \p, and \X has not been compiled at offset 1

Bug #1622: Userslists with php versions without utf8 support issues warning \P, \p, and \X has not been compiled at offset 1

Added by krileon almost 16 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
24 March 2010
Due date:
% Done:

100%

Estimated time:
0:30 h

Description

Need to check for PHP UTF-8 support before using the following.

$eachValues = preg_split( '/\p{Z}+/u', $value );

which results in the following.

Warning: preg_split() [function.preg-split]: Compilation failed: support for \P, \p, and \X has not been compiled at offset 1 in /var/www/html/joomla/administrator/components/com_comprofiler/plugin.class.php on line 2466

http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,112/id,127672/#127672


Files

1622.patch (1.09 KB) 1622.patch krileon, 08 June 2010 14:48

Updated by beat over 15 years ago Actions #1

  • Assignee set to krileon
  • Target version set to CB 1.2.3

Updated by beat over 15 years ago Actions #2

  • Estimated time set to 0:30 h

Updated by krileon over 15 years ago Actions #3

  • File 1622.patch 1622.patch added
  • Status changed from New to Assigned
  • Assignee changed from krileon to beat
  • % Done changed from 0 to 80

Updated by beat over 15 years ago Actions #4

  • Status changed from Assigned to Closed
  • % Done changed from 80 to 100

Fixed in r1062 slightly differently than patch, still taking in account if we are outputing in utf8 mode.

Updated by beat over 15 years ago Actions #5

  • Subject changed from \P, \p, and \X has not been compiled at offset 1 to Userslists with php versions without utf8 support issues warning \P, \p, and \X has not been compiled at offset 1
Actions

Also available in: PDF Atom