Re: [fw-general] Zend_Filter_Input: problem with presence required and null values
On Mon, Jul 20, 2009 at 2:04 PM, Jordan Moore wrote: > I created an issue in the issue tracker on June 26th, and there have > been multiple emails on the mailing list about this BC break. > > http://framework.zend.com/issues/browse/ZF-7135 > > Unfortunately, it appears that nobody thinks it's significant enough to > fix. > Meaning that it isn't slated for fixing in 1.9? My, that truly sucks. -- David Mintz http://davidmintz.org/ The subtle source is clear and bright The tributary streams flow through the darkness
Re: [fw-general] Zend_Filter_Input: problem with presence required and null values
I created an issue in the issue tracker on June 26th, and there have been multiple emails on the mailing list about this BC break. http://framework.zend.com/issues/browse/ZF-7135 Unfortunately, it appears that nobody thinks it's significant enough to fix. On Mon, Jul 20, 2009 at 10:45 AM, Jonas Fischer wrote: > Hi, > > $validators = array( > 'requiredFieldName' => array('presence' => 'required', 'allowEmpty' => true) > ) > > Before Zend Framework Version 1.8.2 this validator definition worked > fine for me but in later versions it does not work with null values. > > Prior to r15646 the presence of a value was checked using > array_key_exists() but now it is checked using isset(). > > This results in null values being recognized as not present. Is this > intended? And if so, how can I check that a field is specified (but > can be null, false, 0 etc.)? > > Has anybody a solution to this problem? > > Thanks in advance. > > > Best regards, > > Jonas > -- Jordan Ryan Moore
[fw-general] Zend_Filter_Input: problem with presence required and null values
Hi, $validators = array( 'requiredFieldName' => array('presence' => 'required', 'allowEmpty' => true) ) Before Zend Framework Version 1.8.2 this validator definition worked fine for me but in later versions it does not work with null values. Prior to r15646 the presence of a value was checked using array_key_exists() but now it is checked using isset(). This results in null values being recognized as not present. Is this intended? And if so, how can I check that a field is specified (but can be null, false, 0 etc.)? Has anybody a solution to this problem? Thanks in advance. Best regards, Jonas
[fw-general] Zend_Filter_Input: problem with presence required and null values
Hi, $validators = array( 'requiredFieldName' => array('presence' => 'required', 'allowEmpty' => true) ) Before Zend Framework Version 1.8.2 this validator definition worked fine for me but in later versions it does not work with null values. Prior to r15646 the presence of a value was checked using array_key_exists() but now it is checked using isset(). This results in null values being recognized as not present. Is this intended? And if so, how can I check that a field is specified (but can be null, false, 0 etc.)? Has anybody a solution to this problem? Thanks in advance. Best regards, Jonas