Reputation: 818
I made a couple of testing with the closures in php5.4 and they all worked out until i enabled extension=operator.so
. From what i could see was that when this extension is enabled i cannot declare functions like this:
$myfunc = function($value) {
return $value;
}
echo $myfunc('Hello World');
And the FCGI crashes with an internal server error:
[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
Can anybody help me here? Google is not my friend for a couple of days.
P.S. The above code is the only code left in index.php
Upvotes: 2
Views: 183
Reputation: 76
There is quite fresh bug report at https://bugs.php.net/bug.php?id=65403 and it seems to me that it is exact problem you have. It is not fixed yet - but as described in comment in that issue, it can be "solved" by upgrading PHP to 5.5.1 and installing extension from github.
Upvotes: 1