Page 1 of 1

phpdocumentor doesn't work

PostPosted: 14. May 2009 02:58
by miau
PhpDocumentor(phpdoc.bat) falis with an error below.
Parsing configuration file phpDocumentor.ini...
(found in C:\php5\pear\data/PhpDocumentor/)...
ERROR: cannot open phpDocumentor.ini in directory D:/xampp/php/PEAR/PhpDocumentor


I looked into the problem and I found wrong path "C:\php5\pear\data" exists on files below. It must be replaced with "xampp\php\data".
    php\procwatch-lint
    php\PEAR\Console\CommandLine\XmlParser.php
    php\PEAR\docs\examples\example.php
    php\PEAR\phing\Phing.php
    php\PEAR\PHP\CompatInfo\Renderer\Html.php
    php\PEAR\PhpDocumentor\phpDocumentor\Converter.inc
    php\PEAR\PhpDocumentor\phpDocumentor\Setup.inc.php

And defenition below might be added in xampp\install\xamppbasic.inc.
Code: Select all
$backslashrootreal[] = "$partwampp\php\\procwatch-lint
$backslashrootreal[] = "$partwampp\php\PEAR\phing\\Phing.php
$backslashrootreal[] = "$partwampp\php\PEAR\PHP\CompatInfo\Renderer\\Html.php


Furthermore phpDocumentor.ini is missing. The file should be included as php\data\PhpDocumentor\phpDocumentor.ini.

Re: phpdocumentor doesn't work

PostPosted: 14. May 2009 05:15
by miau
Moreover, I found wrong path "C:\php\pear" exists on files below. It must be replaced with "xampp\php\PEAR".
    php\PEAR\PhpDocumentor\phpDocumentor\IntermediateParser.inc
    php\PEAR\PhpDocumentor\phpDocumentor\common.inc.php