2010-12-16 28 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進行測試。