6 Feb
2005
6 Feb
'05
7:01 p.m.
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.
Would that resolve things like? /* this is defined in another file function foobar_foo() { } */ I doubt. Contrib modules might have such code though, especially modules under development (head). Also I have authored patches before with code like: if (!function_exists('foobar_foo')) { function foobar_foo() { ... } } Which is even hard for the tokenizer to parse... Goba