I'm no PHP guru but I don't think so, AFAIK it's more an issue of each individual function. For example, IIRC, include() will return an error if it fails and try to continue, whereas require() will end the execution of the script if it fails. There are options in php.ini that you can use to determine the level of error reporting, and you can use @ in front of function names to suppress errors, but there's nothing that's going to change the way a function fundamentally works short of rewriting it.
One way to get around fatal errors is to use if/else statements - eg in psuedo code
if(function())
{
do this;
}
else
{
print error;
}
Maybe someone else can shed more light on an answer.
|