Fixed error_reporting issues

Without this fix phing was changing the error_reporting to E_ALL and didn't restore previous value which was really annoying in PHP 5.5 because of deprecated warnings.