Monday, August 13, 2012

PHPUnit - Error installing package of PHPUnit (Windows)

When I have install one package of PHPUnit under Windows I got error message:
No releases available for package "pear.phpunit.de/PHPUnit_Selenium"
install failed


I found error message in file /PEAR/REST/13.php this message and look PEAR_Error object.

[message] => SECURITY ERROR: Will not write to C:\Users\kirby\AppData\Local\Temp\pear\cache\972ec004d6044accd5359e2e011b92cerest.cacheid as it is symlinked to C:\Users\kirby\AppData\Local\Temp\pear\cache\972ec004d6044accd5359e2e011b92cerest.cacheid - Possible symlink attack


NOTE: Plz, go to %TMP% OR %TEMP% for find yours TEMP directory.

In truth, I did not found any simlinks. I chose simple solution: remove all cache files.
You can do it or manually or via command (recommended):
pear clear-cache