- Code: Select all
function isError($value)
{
return is_a($value, 'DB_Error');
}
Because I have autoloading turned on, and because $value is an SQL string in this case, I get an error that looks like this:
- Code: Select all
ERROR: The class 'SELECT * FROM foo' could not be found in ...
In version 1.7.14 of PEAR/DB, the problem has apparently been fixed:
- Code: Select all
function isError($value)
{
return is_object($value) && is_a($value, 'DB_Error');
}
Long story short: xampp should probably use PEAR/DB 1.7.14.