|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46572 Apache unable to Load php_ldap.dll
Submitted: 2008-11-14 06:23 UTC Modified: 2009-02-23 09:33 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: gdjsmith at gmail dot com Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.2.6 OS: win32 only
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.
Block user comment
Status: Assign to:
Bug Type:
From: gdjsmith at gmail dot com
New email:
PHP Version: OS:


 [2008-11-14 06:23 UTC] gdjsmith at gmail dot com
My Env is as follows:
Windows Server 2003 Sp2
PHP 5.2.6
Apache 2.0.x

PHP Warning: PHP Startup: Unable to load dynamic library '%PHPRC%\\ext\\php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0 

The Apache php module will load all of the other libraries except this one.

I've been looking into the ssleay32.dll and libeay32.dll and making sure I have the right ones and that they are in the PATH so the OS can find them.

I've used the MSI and zip versions of PHP but get the same results.
Not sure where else to turn to.

Reproduce code:
$ldapconn =ldap_connect("", 389); 
echo "Success "; 
echo "Fail"; 

Expected result:
Succss or Fail

Actual result:
Fatal error: Call to undefined function ldap_connect() 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-14 10:09 UTC]
Works here, try to load it using the CLI, to get the exact error message.

 [2008-11-18 17:54 UTC] gdjsmith at gmail dot com
Yes the CLI works it is the apache module that will not load php_ldap.dll.
 [2009-02-23 09:33 UTC]
Then be sure that you use the right php.ini or the same PHP (ts or nts). It is not a bug but an install issue.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Nov 30 02:01:27 2023 UTC