【发布时间】:2016-04-18 09:14:55
【问题描述】:
有没有人知道这段 php 代码会导致带有 nginx 的 apache2 网络服务器抛出服务器错误 500 的线索是什么?
function cycleColsDbl() {
static $cols = ['transparent;', '#efefef;'], $i = 0;
$selectCol = ($i++/2 % 2 == 0) ? 0 : 1;
return $cols['$selectCol'];
}
服务器 suexec.log 吐出了一个相当荒谬的声明:
[2016-04-17 08:34:34]: uid: (10003/usr) gid: (1003/1003) cmd: cgi_wrapper
error.log 对此一无所知。
500 在页面加载时抛出,因此该函数实际上从未被调用。
有什么想法吗?
【问题讨论】: