After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596902 - PHP input sources don't have <script language=['"]php['"]>...</script> tags recognized.
PHP input sources don't have <script language=['"]php['"]>...</script> tags r...
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.5.8
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-09-30 18:14 UTC by Adam H Peterson
Modified: 2009-12-30 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
An example source file showing PHP code that Doxygen doesn't parse. (203 bytes, application/x-httpd-php)
2009-09-30 18:14 UTC, Adam H Peterson
Details

Description Adam H Peterson 2009-09-30 18:14:28 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.
Comment 1 Dimitri van Heesch 2009-10-10 14:40:41 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 2 Dimitri van Heesch 2009-12-30 13:38:57 UTC
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).