PHP 7 compatibility extension for Magento 1 by Inchoo

Installs: 2 658

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 147


2.1.1 2017-06-07 09:26 UTC

This package is auto-updated.

Last update: 2024-04-21 19:54:13 UTC


PHP 7 compatibility extension for Magento 1 core by Inchoo. Article with some tests and stats:


Carefully choose the release that's appropriate for your Magento core!


Tested on M CE - & M EE - Note that this version is also needed for these cores with SUPEE-8788 applied.

(CE version of extension is in branch, and EE version is in EE branch.)

Older versions of Magento may work, but may also have other problems, not fixed by this extension.

If you can, upgrade to freshest Magento core first. If you can't, this may be a good starting point to make a branch for older versions.

Backwards compatible with PHP. Tested by us on PHP 5.6 & 5.5. Users have reported it working fine even on 5.3.3. Installing the extension before switching to PHP 7 is a good idea.

Read the Wiki! It contains a lot of great information and stuff you need to do or know about running M1 on PHP7.


Tested on M CE 1.9.3.* & M EE 1.14.3.*.

This version removes all model overwrites and Mage_Core_Model_File_Uploader overload. That's fixed in 1.9.3 core.

Included fixes are:

  • incorrect sorting in the calculation of the discount fix
  • JSON decoding fix
  • resource session fix
  • Connect Packager fix
  • Topological sort for proper ordering when doing totals calculation

Due to fixes implemented in Magento core, there is no need for different branches for CE and EE any more - this release works for both.

3rd party extensions

May be incompatible with PHP 7. We can't do anything about that. But their authors can.


MIT. (See LICENSE.txt).


Yes. (Of course.) See Issues tab. Issue reporting is welcome. Pull requests are welcome. (But read Wiki and existing code first.)


For Composer install, available on Firegento: .

For older Magento cores, use or dev-EE for Enterprise version. For newer ones, just use current release (2.0.*).

Or just download ZIP of the latest release and copy files to appropriate locations.

Remember to clear the cache. Also, check Proper Installation Wiki page.


After installation, run shell/inchoo_php7_test.php. This automated testing tool will check if the extension is successfully installed, is its version appropriate for your Magento Core version, is your server PHP version good, are rewrites in place, etc.