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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 8 - 2 = ?

 
 [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.

Comments

 [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 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 08:05 UTC] yunosh (Jan Schneider)
Confirmed.