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
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

<?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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC