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

Bug #1405 Could not access DB class in DB\mysql.php
Submitted: 2004-05-14 04:11 UTC
From: dnj_2003 at 163 dot com Assigned: danielc
Status: Bogus Package: DB
PHP Version: 4.3.3 OS: window2000professional
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 : 2 + 36 = ?

 
 [2004-05-14 04:11 UTC] dnj_2003 at 163 dot com
Description: ------------ I add the following line to use DB_mysql class: require_once "DB/mysql.php"; At first report a error that DB_common could not extend an undefined pear class.So I update the package DB with the latest version, then the error disappeared. But an error as following was reported: Fatal error: Undefined class name 'db' in d:\php\PEAR\DB\mysql.php on line 115 so I add the following line at the head of file "mysql.php": require_once 'DB.php'; then the error info disappears.

Comments

 [2004-05-14 12:57 UTC] danielc
The only file you're supposed to require is DB.php. Please read the manual. http://pear.php.net/manual/en/package.database.db.intro-connect.php