我对 php5.4 中的闭包进行了几次测试,直到我启用它们都成功了extension=operator.so
。据我所知,当启用此扩展时,我无法声明这样的函数:
$myfunc = function($value) {
return $value;
}
echo $myfunc('Hello World');
FCGI 因内部服务器错误而崩溃:
[Wed Aug 07 20:38:17 2013] [warn] [client x.x.x.x] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Wed Aug 07 20:38:17 2013] [error] [client x.x.x.x] Premature end of script headers: index.php
有人可以在这里帮助我吗?谷歌已经有几天不是我的朋友了。
PS 上面的代码是 index.php 中剩下的唯一代码