What PEAR package?
What version of PHP are you running?
(And does the package in question say it is compatible with your PHP version?)
I ask, because there is a difference in PHP 4 versus PHP 5 in the way classes and objects are processed, and I think this error occurs in certain situation that will work in PHP4 but not in PHP5, namely making a static call to a class method where that method uses "$this->" within that method to refer to other class members. This would happen where some line in your script references a class method as...
className::methodName(args);
...instead of instantiating an object, such as...
$myObj = new className();
$myObj->methodName(args);