revert php 5.5 specific error handling