Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.3

Bug #6624 formatter doesn't handle parameters and object methods at the same time
Submitted: 2006-01-29 21:10 UTC
From: chrismir Assigned: wiesemann
Status: Closed Package: Structures_DataGrid (version 0.6.3)
PHP Version: 4.4.0 OS: Suse 10.0
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 22 + 36 = ?

 
 [2006-01-29 21:10 UTC] chrismir
Description: ------------ Setting a method of an object as formatter works fine, by passing an array such as; array($this, 'methodeName') as formatter. However, being an array, this formatter passes completely the code responsible for extracting the parameters. code of Column.php, line 163 // Determine callback and additional parameters if ($size = strpos($this->formatter, '(')) { So parameters won't be processed and generate an error; $column->setFormatter(array ($this, 'formatter($option)')); Notice: Unable to process formatter in /usr/share/php/PEAR.php on line 879

Comments

 [2006-01-30 14:25 UTC] wiesemann
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.