PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #6970

applyFilter doesn't return NONEXIST_ELEMENT Error

Details

Request #6970applyFilter doesn't return NONEXIST_ELEMENT Error
Submitted2006-03-01 10:21 UTC
Fromwojciech dot olearczyk at ciao-group dot com
Assignedavb
StatusClosed
PackageHTML_QuickForm
PHP Version4.3.8
OSLinux
Roadmaps(Not assigned)

Comments

[2006-03-01 10:21 UTC] wojciech dot olearczyk at ciao-group dot com

Description:
------------
It is stated on http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.applyfilter.php
that HTML_QuickForm::applyFilter() may return error if element is not found.

However that's not true. There is lack of this functionality within code.

Test script:
---------------
$mResult = $oForm->applyFilter('no_element_with_that_name', 'trim');
if ( PEAR::isError ( $mResult ) ) {
( ... )
}

Expected result:
----------------
HTML_QuickForm::applyFilter() will return QUICKFORM_NONEXIST_ELEMENT if element cannot be found.

Actual result:
--------------
no error