Hello,
I upgraded my project from RC2 to RC3 today, and all went smoothly
except for 1 area, validation.
I have a User model, with the following validation: (a sample)
var $validate = array(
'first_name' => array(
'alphanumeric' => array(
'rule' => 'alphaNumeric',
'message' => 'Your name can only
contain letters.',
),
'between' => array(
'rule' => array('between', 1, 15),
'message' => 'You must supply your
first name',
'required' => true
)
),
'last_name' => array(
'alphanumeric' => array(
'rule' => 'alphaNumeric',
'message' => 'Your name can only
contain letters.',
),
'between' => array(
'rule' => array('between', 1, 15),
'message' => 'You must supply your last
name',
'required' => true
)
)
);
In CakePHP 1.2 RC3 both first_name and last_name fail to validate with
valid values (or any value infact).
I've traced this down to the regex in /cake/lib/validations.php,
around line 170.
My development machine, OS-X, PHP 5.25 this issue does not occur.
On the server, CentOS, PHP 5.1.6 this does occur.
If this is a setting in PHP, or a known issue with PHP 5.1.6 please
let me know.
James
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---