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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 - 19 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 19 19:03:14 2022 UTC