ZF-4231: Syntax error


Syntax error in Example 19.8. File form element usage:

there's a missing coma in the last addValidator, between 'Extension' and false.

$element = new Zend_Form_Element_File('foo'); $element->setLabel('Upload an image:') ->setDestination('/var/www/upload') ->addValidator('Count', false, 1) // ensure only 1 file ->addValidator('Size', false, 102400) // limit to 100K ->addValidator('Extension' false, 'jpg,png,gif'); // only JPEG, PNG, and GIFs $form->addElement($element, 'foo');


Fixed in trunk and 1.6 release branch; will release with 1.6.1