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

Bug #13466 Make driver names __autoload friendly
Submitted: 2008-03-22 14:03 UTC
From: madsliejensen Assigned: madsliejensen
Status: Closed Package: DB_DataObject_FormBuilder (version 1.0.0)
PHP Version: 5.2.5 OS: linux
Roadmaps: (Not assigned)    
Subscription  


 [2008-03-22 14:03 UTC] madsliejensen (Mads Lie Jensen)
Description: ------------ In create() its checked if a driver-class is present (line 922): $className = 'db_dataobject_formbuilder_'.strtolower($driver); I'm using FormBuilder together with the Zend Framework, and is using the Zend_Loader to autoload classes. FormBuilder is itself including the required driver, if not present. However, since class_exists() as default calls the autoload-function, if the class is not present, the autoloader will try to include the file for the class 'db_dataobject_formbuilder_<driver>', which fails, since the more correct class is 'DB_DataObject_FormBuilder_<driver>'. Is there some specific reason why it's all lowercased? I've changed it in my own setup, and it seems to be working ok.

Comments

 [2009-05-27 02:25 UTC] madsliejensen (Mads Lie Jensen)
-Status: Open +Status: Closed -Assigned To: +Assigned To: madsliejensen
This is done in 1.0.0
 [2009-07-10 12:41 UTC] madsliejensen (Mads Lie Jensen)
-Status: Closed +Status: Open -Type: Feature/Change Request +Type: Bug -Package Version: 1.0.0RC7 +Package Version: 1.0.0
Too quick to close this one... The drivername is still lowercased in line 922 of FormBuilder.php, while the filename is _not_ lowercased. The driverpart of the driver used, is also _not_ lowercased.
 [2012-01-02 07:12 UTC] doconnor (Daniel O'Connor)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. 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.