php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52805 Unable to load dynamic library php_ldap.dll
Submitted: 2010-09-09 21:55 UTC Modified: 2010-09-09 23:15 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: emiller at gomedico dot com Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 5.2.14 OS: Windows 2003 Server
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: emiller at gomedico dot com
New email:
PHP Version: OS:

 

 [2010-09-09 21:55 UTC] emiller at gomedico dot com
Description:
------------
System Config:
Windows Server 2003 (32-bit)
Apache 2.2.16
PHP 5.2.14

Error Message in Apache Log:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program 
Files\\PHP\\5.2\\ext\\php_ldap.dll' - The operating system cannot run %1.\r\n in 
Unknown on line 0

Facts / Things I've Tried
- Apache LDAP module is showing in PHPINFO to indicate that it is loading 
correctly and issue resides on PHP side.
- php_ldap extension uncommented.
- C:\Program Files\PHP\5.2 and C:\Program Files\PHP\5.2\ext have both been added 
to the PATH variable
- extension_dir set to C:\Program Files\PHP\5.2\ext
- dll location has been verified manually (by two sets of eyes)
- Apache has been rebooted
- Server has been rebooted
- Downloaded PHP 5.2.14 (VC6 Thread-Safe for Win) from php.net, replaced DLL 
with DLL from ZIP and rebooted.
- Replaced entire install of PHP with ZIP listed above, rebooted.
- Placed DLLs in System32 folder (out of desperation)


Test script:
---------------
n/a

Expected result:
----------------
PHP LDAP module to load correctly and show in PHPInfo

Actual result:
--------------
Error Message in Apache Log:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program 
Files\\PHP\\5.2\\ext\\php_ldap.dll' - The operating system cannot run %1.\r\n in 
Unknown on line 0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-09 22:24 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-09-09 22:24 UTC] pajoye@php.net
Works just fine (since years in 5.2), please try in CLI (php.exe -d ... ) to see the exact error.
 [2010-09-09 22:33 UTC] emiller at gomedico dot com
php.exe -d extension=php_ldap.dll returns PHP Warning: Module 'ldap' already 
loaded in Unknown on line 0
 [2010-09-09 23:01 UTC] pajoye@php.net
-Status: Feedback +Status: Bogus
 [2010-09-09 23:01 UTC] pajoye@php.net
That means the module has been loaded already (aka it works).

See:

php -m

to see the list of loaded modules.

and

php -i | find "php.ini"

to see the php.ini used, the one where php_ldap.dll is defined.

Please ask more questions/support on the PHP Windows or PHP setup mailing lists, see the 'list' link in the php.net site.
 [2010-09-09 23:14 UTC] emiller at gomedico dot com
Thats the conflict Im having, it may show as loaded but within PHPInfo it is not 
showing as loaded.
 [2010-09-09 23:15 UTC] pajoye@php.net
apache loading different php.ini, some PATHs are wrong, many ways to break an install. But there is no bug, sorry.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 19 09:01:30 2025 UTC