You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After explode() we are checking each single "group" against the pattern
[0-9A-Fa-f]{0,4}. If it does not match, we are sending IPV6BADCHAR.
This diagnosis could be confusing if we check
:ffdee:
Here we do NOT have bad characters inside, instead we have just a too long
"group". Maybe we should define and alternative error-code for it.
(PS: Why did you match with preg_grep() and not with preg_match() as my initial
version draft was?)
Original issue reported on code.google.com by danielma...@googlemail.com on 1 Oct 2010 at 1:45
The text was updated successfully, but these errors were encountered:
I've changed the description of ISEMAIL_IPV6BADCHAR to "The IPv6 address
contains an illegal group of characters" in is_email_statustext.php
I used preg_grep to avoid writing a loop in PHP code when it could be done by
the underlying engine. I didn't benchmark it because it's difficult to know how
real-world data would impact this choice. I did it mainly because there is less
code this way.
Original comment by dominic....@gmail.com on 4 Oct 2010 at 3:34
Original issue reported on code.google.com by
danielma...@googlemail.com
on 1 Oct 2010 at 1:45The text was updated successfully, but these errors were encountered: