#46572 [Fbk->Opn]: Apache unable to Load php_ldap.dll

From: Date: Tue, 18 Nov 2008 17:54:30 +0000
Subject: #46572 [Fbk->Opn]: Apache unable to Load php_ldap.dll
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131075@lists.php.net to get a copy of this message
ID: 46572 User updated by: gdjsmith at gmail dot com Reported By: gdjsmith at gmail dot com -Status: Feedback +Status: Open Bug Type: Dynamic loading Operating System: Windows Server 2003 PHP Version: 5.2.6 New Comment: Yes the CLI works it is the apache module that will not load php_ldap.dll. Previous Comments: ------------------------------------------------------------------------ [2008-11-14 10:09:37] pajoye@php.net Works here, try to load it using the CLI, to get the exact error message. ------------------------------------------------------------------------ [2008-11-14 06:23:12] gdjsmith at gmail dot com Description: ------------ 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: --------------- <?php $ldapconn =ldap_connect("ldap.test.com", 389); if($ldapconn){ echo "Success "; } else{ echo "Fail"; } ?> Expected result: ---------------- Succss or Fail Actual result: -------------- Fatal error: Call to undefined function ldap_connect() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46572&edit=1

« previous php.bugs (#131075) next »