|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64627 Unable to load dynamic library 'C:\Program Files (x86)\PHP\5.4.13\ext\php_ldap.
Submitted: 2013-04-10 20:19 UTC Modified: 2013-10-15 11:54 UTC
From: jonathan at snetram dot nl Assigned:
Status: No Feedback Package: LDAP related
PHP Version: 5.4.13 OS: Windows 7 64 bit
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-04-10 20:19 UTC] jonathan at snetram dot nl
When loading php_ldap as an extension in PHP 5.4.13 on Windows 7 64bit I seem to not be able to work with LDAP and found the following error in the eventvwr after loading my webserver:

Unable to load dynamic library 'C:\Program Files (x86)\PHP\5.4.13\ext\php_ldap.dll' - %1 is not a valid Win32 application.

It seems there is a compatability issue with this DLL.

Expected result:
No error when loading php_ldap.dll and LDAP functionality working

Actual result:
I checked php -m and it lists the ldap module being loaded, however phpinfo() doesn't seem to think so.

Other libraries like php_bz2.dll are loaded without problems, they show up in the output of both php -m and phpinfo();


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-11 07:57 UTC]
php_ldap.dll depends on a number of libs like openssl or sasl, please make sure those libs are on the path when starting webserver. Do you run phpinfo() in cli or webserver? If -m works, phpinfo (or just -i) should also work in console. Please check that.
 [2013-04-11 07:57 UTC]
-Status: Open +Status: Feedback
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 09 16:01:27 2023 UTC