GNOME Bugzilla – Bug 596902
PHP input sources don't have <script language=['"]php['"]>...</script> tags recognized.
Last modified: 2009-12-30 13:38:57 UTC
Created attachment 144427 [details] An example source file showing PHP code that Doxygen doesn't parse. When Doxygen is given a PHP source file, it recognizes PHP source code between "<?php ... ?>" tags, but ignores code between "<script language='php'> ... </script>" tags. Steps to reproduce: 1. In an empty directory, create this file (minus the line numbers) as "test.php": 1 #!/usr/bin/env php 2 <script language="php"> 3 /** 4 * @brief A test class for PHP Doxygen support. 5 */ 6 class TestClass { 7 /** 8 * @brief The constructor. 9 */ 10 public function __construct() { } 11 }; 12 </script> 2. Run Doxygen: doxygen -g Doxyfile doxygen Doxyfile 3. View the generated html/index.html Desired results: Doxygen should produce a "Classes" tab in the HTML documentation, which when clicked would show the documentation for "TestClass". Actual results: The class documentation is not present, presumably because the <script...> tag was interpreted as HTML output rather than parsed as PHP source delimiters. If line 2 is changed to "<?php" and line 12 is changed to "?>", the documentation is produced.
Confirmed. Should be fixed in the next subversion update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.6.2. Please verify if this is indeed the case and reopen the bug if you think it is not fixed (include any additional information that you think can be relevant).