PEAR_Error\n"; $savant->setError('pear'); $result = $savant->loadPlugin('nosuchthing'); echo "
\n";
print_r($result);
echo "
\n\n"; echo "

PEAR_ErrorStack

\n"; $savant->setError('stack'); $result = $savant->loadPlugin('nosuchthing'); echo "
\n";
print_r($result);
echo "
\n\n"; echo "
\n";
print_r(print_r($GLOBALS['_PEAR_ERRORSTACK_SINGLETON']));
echo "
\n\n"; echo "

Exception

\n"; $savant->setError('exception'); $result = $savant->loadPlugin('nosuchthing'); echo "
\n";
print_r($result);
echo "
\n\n"; ?>