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