fix deprecated warnings php_set_error_handling