will be able to remove this if zendframework/ZendDiagnostics#23 is accepted