2012-11-13 10:25
浏览 112

composer.phar更新然后解析错误:语法错误,意外$ end

I'm using Zend Framework 2.

After an update (I guess quite long because I had to use "COMPOSER_PROCESS_TIMEOUT=5000 php composer.phar update"). I get this strange error "Parse error: syntax error, unexpected $end"... so I add to the end of the current file an "?>" but another file error has coming with this similar error.. If you see every files of Zend Framework 2 (or ex: 1.11), no one has this end.

So my question is : It's a mistake of the composer.phar when updating or a mistake with my PHP (php.ini) ?

To explain with a concrete example, I'm trying to install "socalnick/scn-social-auth". So I changed the composer.json file according the installation ( then these errors.

Somebody has this kind of error ?

Thanks a lot Have a good day !

图片转代码服务由CSDN问答提供 功能建议

我正在使用Zend Framework 2.

更新后(我 猜得很长,因为我不得不使用“COMPOSER_PROCESS_TIMEOUT = 5000 php composer.phar update”)。 我得到这个奇怪的错误“解析错误:语法错误,意外$结束”...所以我在当前文件的末尾加上“?>” 但是另一个文件错误已经出现了这个类似的错误..如果你看到Zend Framework 2(或者ex:1.11)的每个文件,没有人有这个结果。


To 用一个具体的例子来解释,我正在尝试安装“socalnick / scn-social-auth”。 所以我根据安装(更改了composer.json文件然后这些错误。


非常感谢 祝你有个美好的一天!

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • dtcmadj31951 2013-03-31 21:44

    I found the solution.. shame on me ! Just after an update of Debian

    # apt-get update 
    # apt-get upgrade 

    The website is back !

    Last update

    It seems the problem is coming from the virtual machine (I'm using VMware) so just reboot your virtual machine and all will be perfect !

    解决 无用
    打赏 举报
  • 查看更多回答(2条)

相关推荐 更多相似问题