I agree with Jacques, for things like redeclaring a function you should be either using a custom page (or catching them in testing). I'm wondering if you could set display_errors(0) in your page or php.ini file, and catch things in your code with something like this (obviously this will vary depending on what the error you want to catch is and what your expected behaviour is).
if(function())
{
//your usual code
}
else
{
some error
}
This is risky though, because as well as hiding the error you want, you're hiding other errors in the page (or the whole site if you use the ini file)