php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27170 php5 fails to recognize extension modules
Submitted: 2004-02-06 18:41 UTC Modified: 2004-02-07 23:00 UTC
From: true_idler at hotmail dot com Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.0.0b3 (beta3) OS: Windows XP
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: true_idler at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-02-06 18:41 UTC] true_idler at hotmail dot com
Description:
------------
Despite copying both the php_mysql.dll and libMySQL.dll files to every possible location I could think of that would fix the problem(Systemroot, Windows\system32, PHP DLLS directory, PHP Extensions directory, PHP Root directory) and editting my php.ini file's extension_dir accordingly, php, on startup, still fails to load the php_mysql.dll with a "specified procedure could not be found."

I have checked the manual a number of times, which simply states to modify the php.ini file to enable the extension(and to set the extension_dir) and copy the libMySQL.dll file into the systemroot directory. Following those guidelines, PHP still fails on startup.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-07 19:48 UTC] true_idler at hotmail dot com
As much as I would like to agree with your assessment, I have to disagree.

The problem seems to exist within the php_mysql.dll file. I have followed all of the instructions according to the manual(or lack thereof), including moving libMySQL.dll to the  system directory, editting the extension_dir property in the php.ini file, and enabling the use of php_mysql.dll

However, I have received each and every time that I have attempted to load Apache, a PHP Startup error stating, and I quote:

"PHP Startup: Unable to load dynamic library 'd:/PHP5/extensions/php_mysql.dll' - The specified module could not be found"

If you were to ask me, this means that php_mysql.dll references to a nonexistant code structure, likely a module that has changed it's name or been removed from the libMySQL.dll file. The problem occurs both with PHP's libMySQL distribution and MySQL's libMySQL distribution. Thus, the logical conclusion is that the error occurs(and thus exists) within php_mysql.dll and, therefore, would be a bug in PHP.

I have done as you suggested and searched for information regarding this issue elsewhere and have found that I'm not the only one having the problem. And to take note:
http://news.php.net/article.php?group=php.internals&article=6927
A person replying to an issue the same as mine noted that they were able to get around the error by using the libMySQL.dll file from an earlier snapshot, which caused it to work fine, and goes on to guess that there might be an error in the distribution.

Due the the regularity of the snapshots, I was unable to find the snapshot that this person accessed, though I did attempt it.

I apologize if I come off as rude in any way.
 [2004-02-07 23:00 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

This is already fixed in CVS. (beta3 is just too old)

 [2004-04-26 08:31 UTC] hermann at kuffner dot de
Sorry, it seem's not to be fixed in 5.0.0RC1-Win32, I downloaded 2004-04-24.
If I configure PHP5 on WinXP in ISAPI-mode, I allways get the described error on system-startup (module not found), regardless what I write to the extension-path.
But if I change the configuration of IIS to the cgi-mode (extension path = 'C:\php\ext'), it works well and I can connect to mysql without problems.
 [2004-09-08 02:05 UTC] martin dot wimmer at web dot de
This Problem seems to still exist under PHP 5.0.1
I tried installing the ISAPI-module under Apache 2 (OS: WinXP) and wanted to load any extension.
Regardless to where I copied the dll-files and what I set 'extension_dir' to, I always get the same error message (Only the given directory changes):
"PHP Startup: Unable to load dynamic library
'C:/PHP5/php_mysql.dll' - The specified module could not be
found"
If you need my php.ini & apache.conf files, just send me a mail, I will send them to you
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC