SchumacherFM / Magento-OpCache

OpCache (Zend Optimizer) Control Panel (GUI) for the Magento Backend.
100 stars 36 forks source link

PHP files compilation not working #25

Closed rrmesquita closed 5 years ago

rrmesquita commented 5 years ago

Conditions

Running Magento 1.9.4.1 on Vagrant with box Ubuntu/Trusty64 PHP version: 7.2.17-1

Situation

I tried to compile PHP files for even more speed

Problem

When I click on "Compile all PHP files", after a moment I get the following error:

Parse error: syntax error, unexpected 'new' (T_NEW) in /var/www/html/lib/PEAR/XML/Parser.php on line 616

Possible solution

I have applied the patches of OpenMage/magento-lts repository, which removes the Mage_Compiler.

Does this compilation feature requires the original Mage_Compiler?

rrmesquita commented 5 years ago

I have solved it by replacing all &new to new on files lib\PEAR\XML\Parser.php and lib\PEAR\XML\Unserializer.php