Out of all the different applications we have migrated to PHP7, Magento 1 stands above the rest in terms of complexity. But this isn’t our first time around the block; ObjectWave can help you overcome this speedbump on the road to improved Magento 1 performance.
But first, you may be wondering why migrate at all? How does this affect my digital commerce and what can I gain with what seems like an entire new project?
There are myriad pros and cons depending on your own organization, but these three points are the most critical to consider from our perspective:
• Migrating to PHP7 will reflect a noticeable increase in speed and loading time for your Magento 1 ecommerce platform.
• Magento 1 doesn´t support this version of PHP by default, so if you’re looking for increased performance you will have to migrate
• Migration to Magento 2 will practically be mandatory in the future. By migrating to PHP7 in advance, you will ease the Magento 2 transition and its native support for this version will allow for better results, speed and optimization.
With these three points serving as motivation to migrate Magento 1 to PHP7, there’s one important speedbump to be aware of, coding-wise. While it’s actually a relatively easy fix, this code edit involves getting directly in touch with the framework’s core.
Since PHP7 doesn’t have a public repository in which one can send the update, we will leave the patchwork here, in case you find it useful.
In the archive: app/code/core/Mage/Core/Model/Layout.php, you have to update the getOutput function:
If you’re interested in knowing why this happens, you can read more about it in the new Uniform Variable Syntax or feel free to leave us a contact or e-mail. We’ll be glad to help you!