php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: herrmann at interdv dot de
New email:
PHP Version: OS:

 

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

<?php
/**
* 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
<?php
and the doc comment, everything's fine.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-27 11:13 UTC] jellybob@php.net
PHPDoc is no longer supported, please use PHPDocumentor instead (see http://pear.php.net/package-info.php?package=PhpDocumentor and http://phpdocu.sourceforge.net/ for more details.)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 14:01:27 2025 UTC