#19359 [NEW]: QuickForm Bug

From: Date: Wed, 11 Sep 2002 15:32:46 +0000
Subject: #19359 [NEW]: QuickForm Bug
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9015@lists.php.net to get a copy of this message
From: entis@poczta.fm Operating system: PHP version: 4.2.1 PHP Bug Type: PEAR related Bug description: QuickForm Bug (sorry, my english isn't very good :( ) I found bug in QuickForm class. example : $form->addElement('link','linkname',null,'index.php','This is link',array('style'=>'font-size:20px')); BUG : last argument is ignored becouse in onQuickFormEvent method (from HTML_QuickForm_element) is error: ... switch ($event) { case 'addElement': case 'createElement': $this->$className($arg[0], $arg[1], $arg[2], $arg[3]); break; ... there is only 4 arguments passed, but constructor needs 5 function HTML_QuickForm_link($elementName=null, $elementLabel=null, $href=null, $text=null, $attributes=null) I made this : $this->$className($arg[0], $arg[1], $arg[2], $arg[3], $arg[4]); and it works for me. -- Edit bug report at http://bugs.php.net/?id=19359&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19359&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19359&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19359&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19359&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19359&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19359&r=support Expected behavior: http://bugs.php.net/fix.php?id=19359&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19359&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19359&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19359&r=globals

« previous php.pear.dev (#9015) next »