ZF-318: Zend_Filter_Input::testEmail does not work
Description
<?php
$_POST['email'] = 'test@zend.com';
require_once 'Zend/Filter/Input.php';
$filterPost = new Zend_Filter_Input($_POST);
var_dump($filterPost->testEmail('email'));
?>
returns false. expected true in this case.
Comments
Posted by Uros (sekundek) on 2006-08-14T05:53:12.000+0000
I think you missed that
$filterPost = new Zend_Filter_Input($_POST['email']);
Posted by Sebastian Nohn (nohn) on 2006-08-14T06:37:50.000+0000
I don't think so.
$filterPost->getAlnum('email');
works as expected. Why should I do $filterPost = new Zend_Filter_Input($_POST['email']);? I want to filter $_POST not an element of Post.
By the way, it's documented like I did ;)
Posted by Matt Schmidt (sloat) on 2006-08-14T22:15:21.000+0000
Zend_Filter_Input::testEmail relies on Zend_Filter::isEmail, which unfortunately, does not have any code in it.
More info: [ZF-42] Probably even more on the mailing list.
Posted by Bill Karwin (bkarwin) on 2006-09-25T19:44:20.000+0000
Reassigning from Jayson to Bill Karwin, pending further triage.