fix for instances of magento running on PHP >5.3