Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Composer 在本地主机上安装了 Goutte。使用 XAMPP 运行时,它按预期工作。然后,我将供应商文件夹中的所有文件上传到服务器。现在,脚本显示如下错误:
语法错误,在第 68 行的 vendor/react/promise/src/functions.php 中出现意外的 '[',期待 ')'
该文件无需在本地主机上进行任何修改即可完美运行。可能的原因是什么?
我有保存问题,将我的 php 版本升级到 5.4.x 解决我的问题。顺便说一句,在生产环境中使用 Goutte.phar 会更好。