php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9555 Dynamic libraries are not being found in the php.ini's extension_dir
Submitted: 2001-03-05 02:41 UTC Modified: 2001-05-22 01:05 UTC
From: botto at mailandnews dot com Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0.4pl1 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: botto at mailandnews dot com
New email:
PHP Version: OS:

 

 [2001-03-05 02:41 UTC] botto at mailandnews dot com
Everytime I try to load any dynamic library from the php.ini's extension_dir, I get the following error (the dll specified changes depending on what library I am trying to load):

Unable to load dynamic library 'C:\Inetpub\php\extensions/php_gtk.dll' - The specified procedure could not be found.

My php.ini file contains the following line:

extension_dir = C:\Inetpub\php\extensions

It occured to me that I was missing a trailing backslash; therefore I changed my ini file to:

extension_dir = C:\Inetpub\php\extensions\

This didn't seem to help as I got a similar error message:

Unable to load dynamic library 'C:\Inetpub\php\extensions\php_gtk.dll' - The specified procedure could not be found.

I then thought that maybe any dll I load from the extension dir must also be in the %systemroot%\system32 dir, so I copied the php_gtk.dll to C:\WINNT\system32.  Sadly, I kept getting the same error.

I also tried putting single qoutes and double qoutes around the extension_dir path... as you can guess, I got the same error.

This seems to me, to be a very serious problem!  I can't understand how the inability to load dynamic libraries has gone unnoticed for so many versions.

Any help on this matter would be greatly appreciated!

I am running php 4.0.4pl1 as a CGI on Windows 2000 / IIS.

As a side not, I have compiled and configured php many times, on various Linux installations, and dynamic loading works perfectly.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-29 05:37 UTC] jmoore@php.net
Does this only happen with php_gtk.dll if so you need to get a newer version of PHP, the php_gtk.dll only works with latest cvs not with 4.0.4. It will work the 4.0.5 when its released.

- James
 [2001-05-22 01:05 UTC] derick@php.net
Closing due to no feedback. Please open if the bug still persists with php 4.0.5

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 12:01:32 2025 UTC