开发者

phpDocumentor in Zend Studio ignores properties declared using PHP 5 syntax?

开发者 https://www.devze.com 2023-03-03 04:22 出处:网络
I\'m using vanilla Zend Studio 8 on Mac OS X 10.6 with a simple test project. When I generate documentation using phpDocumentor (using the default settings), the resulting documentation does not incl

I'm using vanilla Zend Studio 8 on Mac OS X 10.6 with a simple test project.

When I generate documentation using phpDocumentor (using the default settings), the resulting documentation does not include any class properties - even though I wrote valid docblocks for them.

Example:

/**
 * The number of characters of the text.
 * It is used to prevent the program from operating beyond the end of the text.
 * @var int
 */
public $length;

The above prope开发者_运维技巧rty doesn't appear anywhere in the generated documentation.

However, if I change public to var (i.e. changing my code from PHP 4 to PHP 5 syntax), then the properties appear in the documentation just fine.

Any ideas on what is causing this problem or how to fix it?

EDIT: I have just installed phpDocumentor separately from the Zend Studio installation, and attempted to generate the documentation that way - it works perfectly outside of Zend Studio and all of the properties show up as well as the highlighted source code.

So this seems to only be an issue with either Zend Studio itself, its integrated copy of phpDocumentor, or its integrated copy of PHP.


I believe PHPDocumentor is not supported anymore, I too am looking for an alternative. If you are on a mac, try and use the Apple Open Source Doxygen, it looks really cool and I believe it is install be default on OSX http://developer.apple.com/tools/creatingdocsetswithdoxygen.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号