Closed rrmesquita closed 5 years ago
Running Magento 1.9.4.1 on Vagrant with box Ubuntu/Trusty64 PHP version: 7.2.17-1
I tried to compile PHP files for even more speed
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
I have applied the patches of OpenMage/magento-lts repository, which removes the Mage_Compiler.
Does this compilation feature requires the original Mage_Compiler?
I have solved it by replacing all &new to new on files lib\PEAR\XML\Parser.php and lib\PEAR\XML\Unserializer.php
&new
new
lib\PEAR\XML\Parser.php
lib\PEAR\XML\Unserializer.php
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?