Re: DB_DataObject Bug?
| From: | Alan Knowles | Date: | Mon, 09 Aug 2004 00:11:55 +0000 |
| Subject: | Re: DB_DataObject Bug? | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32514@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
On Sun, 08 Aug 2004 14:20:41 +0200, Verona Busch <veronabusch@gmx.de> wrote:Hi, after installation of the new DB_DataObject 1.7.0 I get the fatal error when creating the tables with createTables.php. Fatal error: Undefined class name 'db' in ....pear\DB\DataObject\Generator.php on line 111 Before 1.7.0 there was no problem. Is it a bug, or did I do something wrong?It's a bug. Alan changed DB.php to be lazy-loaded, but it breaks things like this.
Alan: *Why* did you change it to be lazy-loaded? * Cause I like breaking thing ;)
It's not like DB is an optional dependency. If people want things not included if they dont' need them, they should lazy-load DataObject.php. There was a conceptial Idea that libraries shouldnt be loaded until they are needed. - It may not save much in this case, but in the rare case it does, the benefits are quite good.Regards Alan
Vero -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php