Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony 2.1-x/编写器错误带DoctrineBundle的异常_Doctrine_Symfony 2.1_Composer Php - Fatal编程技术网

Symfony 2.1-x/编写器错误带DoctrineBundle的异常

Symfony 2.1-x/编写器错误带DoctrineBundle的异常,doctrine,symfony-2.1,composer-php,Doctrine,Symfony 2.1,Composer Php,*更新:可以通过减少目录深度来解决此问题* 我已尝试通过使用composer的推荐方式安装最新的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 bundle\DoctrineBundle\b05c336283dc24eb535a50f89ce9

*更新:可以通过减少目录深度来解决此问题*

我已尝试通过使用composer的推荐方式安装最新的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 bundle\DoctrineBundle\b05c336283dc24eb535a50f89ce9d91c.0-Das句柄为ung-tig

到目前为止,搜索并没有给我进一步的线索,我希望避免从头开始创建所有东西。我尝试了composer的self-udpate功能和上面提到的所有版本,但安装仍然失败。我在Win7上使用GitBash和PHP5.3.8,但我也尝试了PHP5.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>

这个问题可以通过减少目录深度来解决


PS:现在我有了解决这个问题的rep分数…

你能粘贴完整的输出吗?这很奇怪,但却是真的:减少安装目录的深度帮助我解决了同样的问题。我做了一些挖掘,发现这是由于Windows中的路径+文件名的限制。请在此处查找更多信息: