setRegisterInArrayValidator function is not working in zend

In order to dynamic form validation handling in Zend framework we use “setRegisterInArrayValidator”. But few days back i have observed this fuction was showing me with new Zend library. With new Zend library if we write $form = new Admin_Form_Form1(); $form->getElement(‘form_element’)->setRegisterInArrayValidator(false); It gives the error “Invalid type given, value should be float, string, or integer”(…)