Page 1 of 1

php tokenizer and phpDocumentor

Posted: Mon May 01, 2006 6:51 pm
by alex.barylski
I'm sitting down today thinking about how phpDocumentor works and it occurs to me...

How the heck does it properly determine include files if you use the following technique:

Code: Select all

include_once("$path/class.mysome.php");
How could you get this problem? If writing a documentor...not from the programmer perspective...as you would just use static strings...

Cheers :)

Posted: Mon May 01, 2006 7:25 pm
by Deemo
the best thing i can think of (which i dont know how to necessarily implement) is to have to execute the PHP code, and use a var_dump() to read the variable in its right place.

Naturally this probably isnt the best solution, but its an interesting think you came up with

Posted: Mon May 01, 2006 9:01 pm
by alex.barylski
It just occured to me...that phpDocumentor, etc...probably don't traverse directories using actual includes...

But rather are given a directory or list of files directly, parsing those and establishing association, etc that way... :oops: