MDB2 problem in PHP
Posted on 2009-04-25
I am using PEAR's MDB2 and I am faced with the following error.
Fatal error: Cannot redeclare class MDB2_Error in
/usr/share/php5/PEAR/MDB2.php on line 977
This happens in the login page if the query fails (if they user credentials are wrong). Probably happens in other places if wrong input is passed and the query fails.
It is not installation dependant, I have tested it in many setups. It is not PEAR dependant, I have created my own pear directory and changed the include path accordingly.
I need to make this error message dissapear and let the script die in a more legant way. Also, I would like to understand why it happens.
Thank you very much.