找不到PHPDox文件

use*_*259 7 php continuous-integration symfony jenkins windows-server-2012-r2

我试图在Windows Server 2012上运行phpdox - 但我收到错误:

PHP Version: 7.0.5 (WINNT)
PHPDox Version: 0.8.1.1
Exception: TheSeer\phpDox\Generator\TokenFileException (Code: 1)
Location: phar://D:/htdocs/AscPro/bin/phpdox-0.8.1.1.phar/phpdox/generator/pro
ject/TokenFile.php (Line 19)

File 'file:/D:/htdocs/AscPro/build/phpdox/tokens/AppBundle/AppBundle.php.xml'
not found
Run Code Online (Sandbox Code Playgroud)

我检查了位置,文件没有丢失.我在与jenkins的持续集成过程中遇到了这个问题.这很奇怪,因为同样的phpdox版本在ubuntu上对我有用.也许这与事实有关,所有程序都在"C:"上,包括詹金斯 - 但jenkins工作区是在"D:"上吗?

whi*_*ver 0

恐怕是 phpdox 的 bug。

Phpdox 在检查存在之前将所有路径转换为 ​​unix 样式。

您可以在此处查看此代码

也许你可以破解存在的功能

代替: return file_exists($this->getPathname());

到: return file_exists(parent::getPathname());