PHPDox file not found

I tried to run phpdox on a Windows 2012 server - but I get an error:

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 

I checked the location, the file did not disappear. I encounter this problem in the process of continuous integration with the Jenkins. This is very strange because the same phpdox version worked for me on ubuntu. Maybe this is due to the fact that all programs are on "C:", including Jenkins, but the jenkins workspace is on "D:"?

+7
php continuous-integration symfony jenkins windows-server-2012-r2
source share
2 answers

I think the problem lies in the incorrect use of the WINDOWS path. Please check out this question:

Windows path help - PHP

As a quick test, try changing file_exists to an argument:

file:///C:\htdocs\AscPro\build\phpdox\tokens\AppBundle\AppBundle.php.xml

+1
source share

I am afraid this is a phpdox error.

Phpdox converts all paths to unix style before validation exists.

You can see this code here .

Perhaps you can hack the function exists

replace: return file_exists($this->getPathname());

so that: return file_exists(parent::getPathname());

0
source share

All Articles