Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.8.6

Bug #7756 Error on reading schema file not catched
Submitted: 2006-05-30 12:44 UTC
From: yunosh Assigned: yunosh
Status: Closed Package: MDB2_Schema (version 0.5.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    

 [2006-05-30 12:44 UTC] yunosh (Jan Schneider)
Description: ------------ If the provided schema file is not readable, e.g. doesn't exist, parseDatabaseDefinition() returns false. But at least updateDatabase() is only checking for PEAR_Error's being returned by parseDatabaseDefinition(). This results to misleading error messages in the follow-up code. parseDatabaseDefinition() should return a PEAR_Error instead, if the passed schema files is unreadable. Maybe even an additional file_exsists() check is in order.


 [2006-05-31 09:02 UTC] lsmith (Lukas Smith)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2006-06-01 08:05 UTC] yunosh (Jan Schneider)