On Sun, 6 Feb 2005, Matt Schwartz wrote:
Instead of having each module add a .functions file how about quickly string parsing .module files for function names? Upon encountering a new .module drupal grabs all function names (not compiled by PHP but by reading it in as a text file) and caches them in the database. This way drupal will have its list of module functions cached, no PHP compile is necessary until functions are required, and module developers won't have to change or add anything.
This is the alternative approach for which I already have a (somewhat dirty) parser. ;) The problem is that the most elegant way to write such a parser involves using php 4.3.x. If we only want the function names, a php 4.1 version could be developed, though. Cheers, Gerhard