I found a manual page which seems to be related my problem.
http://jp.php.net/manual/en/regexp.reference.php

According to the description,
the \p, \P and \X are available when UTF-8 mode is selected.

The preg functions use PCRE.

I ran the pcretest by terminal, and set the regex of
Varidation::alphaNumeric
(/cake/libs/validation.php line 169). The followings are the result.
-------------
$ pcretest
PCRE version 6.6 06-Feb-2006

  re> /^[\p{Ll}\p{Lm}\p{Lo}\p{Lt}\p{Lu}\p{Nd}]+$/mu
** Unknown option 'u'
-------------

http://www.pcre.org/pcre.txt says:
 "The  current  implementation of PCRE (release 7.x) corresponds
approxi-
  mately with Perl 5.10, including support for UTF-8 encoded strings
and
  Unicode general category properties. However, UTF-8 and Unicode
support
  has to be explicitly enabled; it is not the default."

So, I guess that the reason why the validation won't work is
because I installed PHP (and PCRE) using RPM (by yum), and
the PCRE was compiled with default setting.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to