2

I have a php (doxygen.php) file which I'd like to document. The problem is wen I run doxygen doxygen.php on linux it doesn't generate anything...index.html file is empty. I get

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
....

It seems that it doesn't recognize the comments properly. My doxygen.php file has this:

<?php


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

?>
1
  • what version of doxygen are you running? Commented Dec 16, 2010 at 13:30

3 Answers 3

1

when using doxygen you have to set your comments off with

/** ...*/

or /*!...*/

see the doxygen "documenting the code" page

Sign up to request clarification or add additional context in comments.

Comments

0

Try

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

1 Comment

must be something with doxygen config. Apart from using /* instead of /** your syntax looks fine.
0

You forgot to include file data. use this code instead:

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


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

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

It will work. tested it with my doxygen.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.