Hello,
According to these articles eAccelerator is not compatible with anonymous function/closure.
https://github.com/eaccelerator/eaccelerator/issues/12
eAccelerator and PHP closures don’t mix
Then trying to use anonymous function in PHP always get fatal error, this also happens then installing latest Joomla version:
PHP sample code:
Error:
It is possible to compile custom patch to eAccelerator via EasyApache?
If i place a patch to this directory /home/cpeasyapache/src/eaccelerator/patches-applied and run an EasyApache, will it apply this custom patch?
Or maybe there is any other solution without disabling eAccelerator.
Thank you for your answers.
According to these articles eAccelerator is not compatible with anonymous function/closure.
https://github.com/eaccelerator/eaccelerator/issues/12
eAccelerator and PHP closures don’t mix
Then trying to use anonymous function in PHP always get fatal error, this also happens then installing latest Joomla version:
PHP sample code:
Code:
<?php
$rs = array_map(function($r){
return $r->type;
},$array);
?>
Code:
Fatal error: Invalid opcode 153/1/8. in /home/user/public_html/somefile.php on line 13
If i place a patch to this directory /home/cpeasyapache/src/eaccelerator/patches-applied and run an EasyApache, will it apply this custom patch?
Or maybe there is any other solution without disabling eAccelerator.
Thank you for your answers.
Last edited: