Okay, I see the problem. This is a different case, in which the 'fields' contains multiple fields.
I have opened a new issue for this: http://framework.zend.com/issues/browse/ZF-1859 Regards, Bill Karwin > -----Original Message----- > From: Jim Scherer [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 16, 2007 12:37 PM > To: [email protected] > Subject: [fw-general] RE: Zend_Filter_Input problem > > > I seem to be having a similar problem and maybe the issue > wasn't resolved. > But then again it might be in understanding as I'm struggling > with ZFI. I've tried the following and isvalid() returns > true, but $data['empty'] is empty. > Shouldn't it return false if either is false or am I just not > understanding. > > I'm using the most current revision 6104. > > <?php > > $filters = array( ); > > $validators = array( 'test' => array( > 'allowEmpty' > => false, > 'fields' => > array( 'empty', > 'notempty' ) ) ); > > $data = array( 'empty' => '', 'notempty' => 'not empty' ); > > $input = new Zend_Filter_Input( $filters, $validators, $data ); > > echo var_dump($input->isValid()); > echo var_dump($validators); > echo var_dump($input); > echo var_dump(empty($data['empty'])); > echo var_dump(empty($data['notempty'])); > > ?> > > Thanks, > > Jim > > > Bill Karwin wrote: > > > > Thanks for the issue report Jakub, I have logged it as > > http://framework.zend.com/issues/browse/ZF-1437 and I will begin > > working on it. > > > > Regards, > > Bill Karwin > > > > -- > View this message in context: > http://www.nabble.com/Zend_Filter_Input-problem-tf3820154s1615 4.html#a12188016 > Sent from the Zend Framework mailing list archive at Nabble.com. > >
