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

Bug #501 _autoload include statement looks wrong
Submitted: 2003-12-29 13:17 UTC
From: arnaud Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: 4.3.4 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2003-12-29 13:17 UTC] arnaud
Description: ------------ When using the factory method a call is made to _autoload(); In this method the code to include the file looks wrong. The following test is made if (!file_exists($_DB_DATAOBJECT['CONFIG']['class_location'].'/'.ucfirst($table).".php")) { Then the include statement is include_once $_DB_DATAOBJECT['CONFIG']['require_prefix'].ucfirst($table).".php"; It would be more logical to have the include do as follows include_once $_DB_DATAOBJECT['CONFIG']['class_location'].'/'.ucfirst($table).".php"; It follows what the file_exists test does

Comments

 [2003-12-30 02:11 UTC] alan_k
Will look at it after holidays. - yeap makes sense (feel free to fix in the meantime)
 [2004-01-01 02:45 UTC] alan_k
fixed in CVS