【发布时间】:2014-09-27 13:31:40
【问题描述】:
我在日志中收到以下错误消息:
2014/08/05 00:13:18 [error] 816#0: *23 FastCGI sent in stderr: "PHP message: PHP Parse
error: syntax error, unexpected '[' in /var/www/example.php on line 32" while reading
response header from upstream, client: 1.1.1.1, server: example.com, request: "GET
/example.php HTTP/1.1",upstream: "fastcgi://unix:/dev/shm/php-fpm-www.sock:", host:
"example.com"
example.php 第 32 行是:
return $fb->api('/me/scores/','GET')['data'][0]['score'];
我重新启动了 php5-fpm(我使用的是 PHP 5.3)、nginx 和 Ubuntu 服务器本身,但没有成功。知道发生了什么吗?谢谢!
【问题讨论】: