*更新:這個問題可以通過減少目錄深度*Symfony的2.1-X /作曲ErrorException與DoctrineBundle
我試圖安裝最新的Symfony版本(2.1.6得到解決,2.1.5 ,的2.1.x-DEV)通過推薦的方式使用的作曲家,但它總是失敗,出現同樣的錯誤:
C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server\symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bundle\DoctrineBundle\b05c336283dc24eb535a50f89ce9d91c.0 - Das Handle ist ung¬tig.
搜索沒有給我更多線索到現在爲止,我想,以避免創造一切從頭開始。我嘗試了作曲家和上述所有版本的自我潤飾功能,但安裝仍然失敗。我使用Win7上的混帳擊用PHP 5.3.8,但我也試過PHP 5.4.10
完整輸出:
C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server>C:\Users\made\AppData\Roaming\Composer\bin\composer
create-project symfony/framework-standard-edition symfony 2.1.6
Installing symfony/framework-standard-edition (v2.1.6)
- Installing symfony/framework-standard-edition (v2.1.6)
Loading from cache
Created project in symfony
Loading composer repositories with package information
Installing dependencies from lock file
- Installing doctrine/common (2.3.0)
Loading from cache
- Installing doctrine/dbal (2.3.1)
Loading from cache
- Installing twig/twig (v1.11.1)
Loading from cache
- Installing symfony/symfony (v2.1.6)
Loading from cache
- Installing doctrine/doctrine-bundle (v1.0.0)
Downloading: 100%
C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server\symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bu
ndle\DoctrineBundle\5338efeb67b3e71765a5179fbadb1633.0 - Das Handle ist ungültig.
[ErrorException]
ZipArchive::extractTo(C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server\symfony\vendor/doctrine/
doctrine-bundle/Doctrine/Bundle/DoctrineBundle/DoctrineBundle-1.0.0\Tests\DependencyInjection\Fixtures\Bundles\Vendor\Annotat
ionsBundle/AnnotationsBundle.php): failed to open stream: Invalid argument
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-custom-installers]
[--no-scripts] [--no-progress] [--keep-vcs] package [directory] [version]
C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server>
你能粘貼完整的輸出嗎? – Seldaek
這很奇怪,但是事實如此:減少安裝目錄的深度也幫助我解決了同樣的問題。 –
我做了一些挖掘,發現這是由於在Windows中限制路徑+文件名。 在此處查找更多內容:[NTFS中的最大文件名長度](http://stackoverflow.com/questions/265769/maximum-filename-length-in-ntfs-windows-xp-and-windows-vista) –