Magento has a patch that enables you to use PHP 5.4.x with Magento Enterprise Edition (EE) and Magento Community Edition (CE).
This patch applies to:
- Magento CE versions 1.6.0.0–1.8.1.0
- Magento EE versions 1.11.0.0–1.13.1.0
To get the patch for Magento CE:
- Go to www.magentocommerce.com/download.
- Click My Account in the upper right corner of the page.
- Log in when prompted.
- Scroll to the Magento Community Edition Patches section.
- Follow the prompts on your screen to get the PHP 5.4 support patch.
To get the patch for Magento EE:
- Log in to www.magentocommerce.com.
- In the left pane, click Downloads.
- In the right pane, click Magento Enterprise Edition.
- Follow the prompts on your screen to download the PHP 5.4 Compatibility patch.
- Apply the patch as discussed in How to Apply and Revert Magento Patches.