In that instance, did the error message read, "The routine
philstestblahfunction has been declared twice in different templates."?
Can you give us the stack trace from the error message?
Does the error go away if you remove your UDF Library?
Does the error go away if you un-register your interceptor?