php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55760 Can not load php_ldap.dll
Submitted: 2011-09-22 06:33 UTC Modified: 2011-10-20 15:50 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: mod4wb at heysoft dot de Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 5.3.8 OS: Windows
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: mod4wb at heysoft dot de
New email:
PHP Version: OS:

 

 [2011-09-22 06:33 UTC] mod4wb at heysoft dot de
Description:
------------
Downloaded XAMPP 1.7.7 as well as (for verifying it is a php problem) PHP 5.3.8
At a first glance, php_ldap.dll seems to be indentical in both versions.
Apache server does not start when php_ldap.dll is enabled.
The reason seems to be (found by the help of dependency walker) that the file has dependencies to IESHIMS.dll and LINKINFO.dll, which are both missing in the distributions.

Solution would be to either recompile php_ldap.dll without the dependencies (earlier versions did not have them) or to add the missing files to the distributions.

Test script:
---------------
not necessary

Expected result:
----------------
Apache should start even when php_ldap is enabled

Actual result:
--------------
Apache does not start when php_ldap is enabled

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-22 06:37 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2011-09-22 06:37 UTC] pajoye@php.net
They are part of windows, not part of PHP distributions.

This extension also did not change in the last 3-4 php 5.3 releases.
 [2011-09-22 06:43 UTC] mod4wb at heysoft dot de
No, they are not part of Windows.
I searched the entire Windows drive and the files are not there.
Also, the file did change from XAMPP 1.7.4 - with this version, I get the error that the versions do not match, and dependency walker does not show both files!
 [2011-09-22 06:49 UTC] pajoye@php.net
-Status: Bogus +Status: Feedback
 [2011-09-22 06:49 UTC] pajoye@php.net
define earlier versions? As I said, we did not change anything in the build 
process since 3-4 releases.

And yes, they are part of windows (or IE for ieshims), that you do not have them 
was clear if you can't load it.
 [2011-09-22 06:54 UTC] mod4wb at heysoft dot de
I see you have not much knowledge of what files belong to windows.
Neither XP nor W2008 do have those files, I just double checked.
I am sorry php does not have a more qualified support.
 [2011-09-22 07:03 UTC] pajoye@php.net
Instead of trying to be impolite you may as well try to answer my questions and 
then I may be able to help you. But not answering them and keep repeating the same 
thing over and over won't bring you anywhere closer to a solution.
 [2011-09-22 07:18 UTC] mod4wb at heysoft dot de
XAMPP 1.7.4 comes with PHP 5.3.5, which does not require the missing files on the same machines
 [2011-09-22 08:03 UTC] pajoye@php.net
-Status: Feedback +Status: Bogus
 [2011-09-22 08:03 UTC] pajoye@php.net
SASL support requires ieshims.dll, via libsasl.dll. Add the internet explorer 
directory to your path and that should fix the issue.
 [2011-09-22 10:41 UTC] mod4wb at heysoft dot de
Sure this tipp does not help, because as I wrote earlier:
"I searched the entire Windows drive and the files are not there."

I downloaded both files from the internet now and it works.
I am sure there will be more people with the same problem, but if you don't care, why should I?

Tipp: 
php 5.3.5 is compiled with VC6
php 5.3.8 is compiled with VC9
Probably soemone did noch check the new compiler options, because the files are required, but nod needed according to dependency walker.
 [2011-09-22 11:09 UTC] pajoye@php.net
Directory of c:\Program Files\Internet Explorer

03/15/2011  09:44 AM           887,296 iedvtool.dll
03/15/2011  09:44 AM           546,816 ieproxy.dll
07/22/2011  07:34 AM           304,640 IEShims.dll
03/15/2011  09:44 AM           498,688 jsdbgui.dll
03/15/2011  09:44 AM           140,800 jsdebuggeride.dll
03/15/2011  09:44 AM            66,048 JSProfilerCore.dll
03/15/2011  09:44 AM           194,560 jsprofilerui.dll
06/10/2009  10:30 PM           358,904 msdbg2.dll
03/15/2011  09:44 AM           455,680 networkinspection.dll
03/15/2011  09:44 AM           537,088 pdm.dll
07/22/2011  07:55 AM           174,384 sqmapi.dll
              11 File(s)      4,164,904 bytes

For any support question please use php-windows or php-install mailing list, 
bugs.php.net is only about actual issues.

Thanks for your attention.
 [2011-09-22 11:15 UTC] pajoye@php.net
And for the record here:

it is a dependency of Crypt32.dll which is used by libsasl.dll.
 [2011-09-29 14:25 UTC] nrenou at free dot fr
Same problem :
With xampp 1.7.7 on a Windows 2003 Server, if you enable php_ldap.dll, Apache won't start
ssleay32.dll, libeay32.dll, libsasl.sll and php5ts.dll are in c:\xampp\php and Apache doesn't start if you don't copy these files into c:\xampp\php\ext (the same folder than php_ldap.dll)

Regards
 [2011-10-12 10:32 UTC] ramki067 at gmail dot com
Same problem here:
Installed XAMPP 1.7.7 and enabled extension=php_ldap.dll in php.ini file in C:\xampp\php\php.ini path. After restarting apache, i'm getting an error: php_ldap.dll file could not be loaded. Module could not be found". The package has PHP 5.3.8 version. Is LDAP not supported or the support is not added in this PHP release? or am i missing something?

Mods Please reply.

Thanks.
 [2011-10-12 10:53 UTC] pajoye@php.net
See my previous comment, not much we can do against that. Also to fix your setup 
is rather easy.
 [2011-10-13 03:47 UTC] ramki067 at gmail dot com
You have said in your earlier posts as,
"Add the internet explorer directory to your path". Is this the solution to the problem? If yes, how where should the internet explorer path be added. Please advice.

Thanks.
 [2011-10-20 09:48 UTC] ramki067 at gmail dot com
Any update on the issue i faced?
 [2011-10-20 10:07 UTC] pajoye@php.net
no, see the windows documentation to know how to add it to your PATH, per user or 
system wide.
 [2011-10-20 15:50 UTC] mod4wb at heysoft dot de
Adding any path does not help, because on a fresh Windows, you will not find the files. So you need to download them from the internet and all will work.

The problem is that the developer does have additional software (VC) on his machine, which installed the required files, and therefore he can not reproduce the problem. Installing a fresh Windows and checking whether his software runs there is not what one can expect from a super star.

Sure php would run without the problem files (it did until them have been included, and dependency walker shows that no function from this dlls is ever used) but for this one would need to agree that a suboptimal solution has been delivered.
 [2012-01-02 17:26 UTC] david at bridgehouse dot org dot za
I have had the same problem using XAMPP 1.7.7 VC9 on Windows Server 2008 R2. First point to note is that you need the C++ redistributable (x86) to get anything to work on a Win64 system using Apache. The next thing is that if php_LDAP.dll will not load it could be because you do not have c:\xampp\php in you PATH environment variable.
Properties of computer -> Advanced System Settings-> Advanced Tab->Environmental Variables..->System Variables ->Path->edit
Add the path to you php folder.
Now that was not too hard was it, guys?
DavidR
 [2012-01-09 11:45 UTC] cpeman000 at hotmail dot com
http://www.apachefriends.org/f/viewtopic.php?f=16&t=48788
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 21:01:32 2024 UTC