Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

eAccelerator apply custom patch via EasyApache

Discussion in 'EasyApache' started by chiefme, Nov 15, 2013.

  1. chiefme

    chiefme Member

    Jan 21, 2009
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    According to these articles eAccelerator is not compatible with anonymous function/closure.
    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:
    $rs = array_map(function($r){
    return $r->type;
    Fatal error: Invalid opcode 153/1/8. in /home/user/public_html/somefile.php on line 13
    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.
    #1 chiefme, Nov 15, 2013
    Last edited: Nov 15, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you considered using the other possible solution offered for that issue? The link to the report you provided shows that one user resolved the issue by modifying the "eaccelerator.optimizer" value in /usr/local/lib/php.ini. You can verify this value on your system with the following command:

    grep eaccelerator.optimizer /usr/local/lib/php.ini
    It should show a value of "1" for this configuration. Modify this value to "0" to resolve the issue, per the report you provided.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice