Here's a fun one. Apparently there was a change in FILTER_VALIDATE_EMAIL as of PHP 5.2.9 that causes the site-wide contact form test to fail. Here's the line that's causing the fails:

$invalid_recipients = array('invalid', 'invalid@', 'invalid_recipients.', '@site.', '@site.com');

If I remove the '@site.' so the line reads:

$invalid_recipients = array('invalid', 'invalid@', 'invalid_recipients.', '@site.com');

all the tests pass.

I've tried running the tests as they are in HEAD on PHP 5.2.6 and they pass with no change. I imagine this change is also present in PHP 5.3 as well, but have not yet verified that.

I have attached a patch that fixes this.

CommentFileSizeAuthor
sitewidecontact.001.patch1.02 KBkarschsp

Comments

karschsp’s picture

Status: Active » Needs review

one of these days i'll remember to set the status!

karschsp’s picture

oh and here's the link to the bug on php.net: http://bugs.php.net/bug.php?id=47282

deekayen’s picture

Status: Needs review » Reviewed & tested by the community

Seems to me the tradeoff here is that you tell people not to use 5.2.9 or remove the offending sample. Fedora 11, Mandriva 2009.1, PCLinuxOS, FreeBSD 7.2, NetBSD 5.0, Frugalware Linux 1.0 all prepackage with 5.2.9, so that seems like a big enough pool of users to not ignore.

Status: Reviewed & tested by the community » Needs review

deekayen requested that failed test be re-tested.

deekayen’s picture

Status: Needs review » Reviewed & tested by the community

Didn't realize re-test would reset the status.

dries’s picture

Status: Reviewed & tested by the community » Needs review

How is ' 'invalid_recipients.' different from 'invalid'? That is, why the trailing dot?

If we want the trailing dot, why not 'invalid.' to make it more consistent?

dave reid’s picture

Status: Needs review » Needs work
aspilicious’s picture

Status: Needs work » Needs review

Needs review as the patch is still applying!

montesq’s picture

Status: Needs review » Closed (cannot reproduce)

Is this issue still up to date?
Because there is no problem with php 5.3.5...