php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30406 MySQL support (php_mysql.dll) not working
Submitted: 2004-10-12 01:09 UTC Modified: 2004-10-12 08:36 UTC
From: ferik100 at flexis dot com dot br Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.0.2 OS: Windows XP SP 2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ferik100 at flexis dot com dot br
New email:
PHP Version: OS:

 

 [2004-10-12 01:09 UTC] ferik100 at flexis dot com dot br
Description:
------------
I have searched the web, posted to discussion lists and basically done my homework, but try as I may I've yet to find a solution to the following problem.

I have recently installed MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP SP 2 machine. (BTW, I've successfully installed and configured Apache/MySQL/PHP dozens of times before under just about every OS.) I uncommented the php_mysql.dll line in the php.ini file as usual, but when I run any script that uses one of the mysql functions, I get an error message that reads, for instance:

Fatal error: Call to undefined function mysql_connect() in...

In my case, I don't get any errors from Apache when the server is started or re-started, but from what I've read here and there it seems that this problem is linked to php_mysql.dll not being loaded properly. I've checked my PATH (no MySQL doesn't come before PHP; in fact it's not even there), I've tried copying libmysql.dll and php_mysql.dll to WINDOWS/SYSTEM32, and I've tried basically every other suggestion I've read, but *nothing* works.

I see that bug report #29912 seems to be pretty similar to mine, but it's been dismissed as "bogus". Curiously enough, lots of people out there seem to be having the same problem as we are who were not having any problems before. I'm not of course saying that the problem is "definitely" with PHP, but something funny's going on...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-12 08:36 UTC] derick@php.net
That doesn't make this a bug, you're just doing something wrong. Please refer to the php-windows@lists.php.net mailinglist for help on how to fix this. There is no bug here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 07:01:32 2024 UTC