php tokenizer and phpDocumentor

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

php tokenizer and phpDocumentor

Post 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 :)
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post 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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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:
Post Reply