2010-12-16 53 views
2

我有一个php(doxygen.php)文件,我想要文档。问题是我在Linux上运行doxygen doxygen.php它不会生成任何内容... index.html文件是空的。我得到Doxygen PHP错误

Warning: ignoring unknown tag `php' at line 1, file doxygen.php 
Warning: ignoring unknown tag `does' at line 4, file doxygen.php 
Warning: ignoring unknown tag `nothing' at line 4, file doxygen.php 
.... 

看来它不能正确识别评论。我doxygen.php文件中有这样的:

<?php 


/* does nothing 
* @param teste 
* @return null 
*/ 
function foo($foo) { 
    echo 'hi'.$foo; 
    return null; 
} 

?> 
+0

你运行的是什么版本的doxygen? – FatherStorm 2010-12-16 13:30:17

回答

0

尝试

/** 
* does nothing 
* 
* @param teste 
* @return null 
*/ 
+0

得到同样的东西...但感谢回复 – 2010-12-16 13:17:05

+0

必须与doxygen配置的东西。除了使用'/ *'而不是'/ **',你的语法看起来很好。 – Mchl 2010-12-16 13:19:22

0

您忘记了包含文件数据。使用此代码代替:

 
/** 
* @file 
* Test file intended for doxygen testing 
*/ 


/** 
* does nothing 
* 
* @param teste 
* @return null 
*/ 

function foo($foo) { 
    echo 'hi'.$foo; 
    return null; 
} 

它会工作。用我的doxygen进行测试。