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 642021 - "use PDO;" makes doxygen not recognize PHP classes
"use PDO;" makes doxygen not recognize PHP classes
Status: RESOLVED DUPLICATE of bug 640463
Product: doxygen
Classification: Other
Component: general
1.7.3
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2011-02-10 12:39 UTC by hans.duedal
Modified: 2011-02-17 21:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple php file to reproduce the bug (249 bytes, application/x-blueprint+xml)
2011-02-10 12:39 UTC, hans.duedal
Details

Description hans.duedal 2011-02-10 12:39:28 UTC
Created attachment 180572 [details]
Simple php file to reproduce the bug

If "use PDO;" is the last use statement in a file (only if it's the last, moving it upwards before the others fixes the problem), doxygen won't recognize the class, and won't document it.

Version:
 - Doxygen version 1.7.3
 - Package/build: doxygen_1.7.3-3ubuntu2_amd64.deb
 - Download: http://packages.ubuntu.com/natty/amd64/doxygen/download

OS:
 uname -mors: Linux 2.6.35-25-generic x86_64 GNU/Linux
 Ubuntu 10.10 (Maverick) - amd64

Expected:
 - Documentation containing class documentation

Actural result:
 - Documentation is generated, but class is missing, also 

Reproduce:
 - Create a PHP file and enter "use PDO;" at the last use statement
 - Run doxygen
 - Try with and without "use PDO;"

doxygentest.php:
	<?php
	namespace test;
	use PDO;

	/**
	 * Simple class to test it
	 */
	class Database extends PDO
	{
		/**
		 * Dummy method
		 * 
		 * @returns string
		 */
		public function foo()
		{
			return 'bar';
		}
	}

doxygen.conf:
	INPUT                  = .
	FILE_PATTERNS          = *.php
	SHOW_FILES             = YES
	EXTRACT_ALL            = YES

command to generate:
	doxygen doxygen.conf
Comment 1 Dimitri van Heesch 2011-02-17 20:46:02 UTC

*** This bug has been marked as a duplicate of bug 641673 ***
Comment 2 Dimitri van Heesch 2011-02-17 20:50:57 UTC
Sorry it was not a duplicate, but the good news is that this should already be fixed in the latest subversion snapshot.
Comment 3 Dimitri van Heesch 2011-02-17 21:13:28 UTC
This is the one I wanted to refer to.

*** This bug has been marked as a duplicate of bug 640463 ***