dongzilu0178 2012-11-13 10:25
浏览 119
已采纳

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 (https://github.com/SocalNick/ScnSocialAuth) then these errors.

Somebody has this kind of error ?

Thanks a lot Have a good day !

  • 写回答

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 ! https://github.com/composer/composer/issues/1365

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵