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

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


 [2006-05-30 07: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.

Comments

 [2006-05-31 04:02 UTC] lsmith (Lukas Smith)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net 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 03:05 UTC] yunosh (Jan Schneider)
Confirmed.