catch PHP warning