php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23789 support for a phpdoc (but doing it right)
Submitted: 2003-05-24 09:09 UTC Modified: 2013-10-28 07:37 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: bs_php at infeer dot com Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 4.3.2RC4 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bs_php at infeer dot com
New email:
PHP Version: OS:

 

 [2003-05-24 09:09 UTC] bs_php at infeer dot com
I posted this request long ago and will trying it again. After reading
that the last summery of the PEAR meeting (2003-05-10 in Amsterdam) I
noticed that the PHPDocumentor is now the official tool to generate the API
documentation. 

*But* PHPDocumentor, like many other tools that need to parse the PHP
code, all suffer from the same problem: Direct support from the
PHP-language itself.
All of these tools must 'simulate' the real PHP parser and are dammed to fail (at least on the next major PHP release). 

If the PHP lib would offer parsing support (see below) it would open a world of PHP tools.

My basic idea is to have access to the PHP parsing results (type, line
number, ...).

It would be neet to hace a vituell PHP parser. Passing a file to the
virtuell PHP-parser object should result in structure that can be
requested by PHP itself. E.g. Arrays that deliver name, type and line
number of the containing classes, class-methods, class-vars and other
attributes.
Similar to
  array get_class_methods ( mixed class_name)
  array get_class_var ( mixed class_name)

Regards Sam

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-28 07:37 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2013-10-28 07:37 UTC] krakjoe@php.net
Such deconstruction is made possible by token_get_all.

Closing the bug.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 13:00:01 2026 UTC