|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20080 PHPDoc: class files not correctly recognized
Submitted: 2002-10-25 04:51 UTC Modified: 2003-04-27 11:13 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: herrmann at interdv dot de Assigned:
Status: Wont fix Package: PEAR related
PHP Version: 4.2.3 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-10-25 04:51 UTC] herrmann at interdv dot de
If I start a class file with

* short line
* long descr
* @author ...
class MyClass



PHPDoc does not recognize the file as class file and reports 2 warnings:

[module] <filename> collision 
PHPDoc is confused: module files must not contain classes. Doc will probably be broken, module gets ignored. 
[class]  collision 
Warning: found a module comment in a class file. Module comment gets ignored, doc might be broken. 

If I insert an
require_once ...;
line between
and the doc comment, everything's fine.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-27 11:13 UTC]
PHPDoc is no longer supported, please use PHPDocumentor instead (see and for more details.)
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Nov 29 21:03:58 2022 UTC