PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB » Bug #1043

Call to undefined function: simplequery()

Details

Submitted2004-03-21 01:46 UTC
Fromkim at showtop dot net
Assigneddanielc
StatusBogus
PackageDB
PHP Version4.3.4
OSwindows server 2003
Roadmaps(Not assigned)

Comments

[2004-03-21 01:46 UTC] kim at showtop dot net

Description:
------------
PEAR is in include_path . But I frist try it , simplequery() con't be found , I find this function in mysql.php file , but not in common.php . Class DB_common does not extend form mysql.php .... why can use it in DB_common Class ?

Reproduce code:
---------------
require_once("DB.php");
$dsn = "mysql://$dbuser:$dbpswd@$dbhost/$dbname";
$DB = new DB();
$DB->connect($dsn);
$query = "Select * From open_user";
$DB = new DB_common();
$result = $DB->query($query);

Actual result:
--------------
Fatal error: Call to undefined function: simplequery() in C:\Program Files\Apache Group\Apache2\htdocs\web\PEAR\DB\common.php on line 1144