PHPDoc does not parse PEAR-Classes correctly
| From: | Tobias Schlitt | Date: | Wed, 20 Nov 2002 17:13:39 +0000 |
| Subject: | PHPDoc does not parse PEAR-Classes correctly | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2776@lists.php.net to get a copy of this message | ||
Hi y'all!
I got some problems while parsing the PEAR-Classes (mainly all, since
beta-stadium) with the PHPDoc. Many classes got parsed well, but many
times,
it does not get the documentation of anything. (e.g. Net/POP3)
Here is the Code from the PHP3-Class:
<snip>
/*
* Connects to the given host on the given port.
* Also looks for the timestamp in the greeting
* needed for APOP authentication
*
* @param $host Hostname/IP address to connect to
* @param $port Port to use to connect to on host
* @return bool Success/Failure
*/
function connect($host = 'localhost', $port = 110)
{
[...]
</snip>
The documentation created by PHPDoc says:
<snip>
private void connect(string $host, integer $port)
Warning: documentation is missing.
Parameter
string $host
Warning: documentation is missing.
integer $port
Warning: documentation is missing.
Returns void
</snip>
I althought tried it with the PHPDocumentor! Same result.
Does anyone know, where the problem is?
Thanks a lot!
Toby
--
<?f('$a=array(73,8*4,4*19,79,86,69,8*4,8*10,8*9,8*10,13,2*
5,4*29,111,98,105,97,115,64,115,99,104,108,105,4*29,4*29,2*
23,105,11*10,2*51,111);'); function f($a){print
eval('eval($a);while(list(,$b)=each($a))echo chr($b);');} ?>