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

Added by krileon about 14 years ago. Updated over 13 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
Actions #1

Updated by beat almost 14 years ago

  • Assignee set to krileon
  • Target version set to CB 1.2.3
Actions #2

Updated by beat almost 14 years ago

  • Estimated time set to 0:30 h
Actions #3

Updated by krileon almost 14 years ago

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

Updated by beat almost 14 years ago

  • 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.

Actions #5

Updated by beat over 13 years ago

  • 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: Atom PDF