Closed (duplicate)
Project:
Drupal core
Version:
6.17
Component:
documentation
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2010 at 13:37 UTC
Updated:
9 Jun 2010 at 13:39 UTC
According to php documentation (http://php.net/manual/en/function.preg-match.php) function preg_match returns values of type integer (0 or 1) or FALSE, never TRUE.
So the above statement "Return value: TRUE if the address is in a valid format" is misleading.
Comments
Comment #1
jhodgdonThis has already been reported:
#505730: valid_email_address: wrong return type
A patch has also been proposed there. If someone would review the patch, we could get it committed...