|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-12 08:37 UTC] derick@php.net
[2005-09-12 17:43 UTC] ianabush at gmail dot com
[2005-09-12 18:15 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 11:00:01 2025 UTC |
Description: ------------ I am attempting to make a simple connection to a mysql database on localhost using a standard PEAR connection property seen below. I have modified my PHP.INI to reflect the ext directory, I have modified my PATH environment variable to point to the PHP and PHP/EXT directories and copied the libmysql and mysql dlls to the windows\system32 and php directories, to no avail. I know that this has been tagged as bogus before, but I am at a loss as to what I am doing wrong here. Other PHP scripts including calls to a PDF lib are working fine, but this DB connection is not. From what I am seeing, this appears to be a bug. Reproduce code: --------------- //connect require_once('DB.php'); $db=DB::connect("mysql://user:pass@localhost/phpdev"); if (DB::iserror($db)) { die($db->getMessage()); } Expected result: ---------------- A connection to the db, which can be manipulated with select statements, etc. Actual result: -------------- Error message is returned below: DB Error: extension not found