php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46179 Can't make php_ldap.dll work even though i decommen the php.ini
Submitted: 2008-09-26 08:12 UTC Modified: 2008-09-26 13:20 UTC
From: cocowool at gmail dot com Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 5.2.6 OS: Vista Ultimate Sp1
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: cocowool at gmail dot com
New email:
PHP Version: OS:

 

 [2008-09-26 08:12 UTC] cocowool at gmail dot com
Description:
------------
i want to connect a ldap server and need to use the "ldap_connect" function
in order to use that function 
i decomment the php.ini where ";extension=php_ldap.dll"
after i restart the apache server
i still can't use the function
the error information as below:

Fatal error: Call to undefined function ldap_connect() in D:\SVN\intra.leju.com\trunk\epm\login.php on line 15

Reproduce code:
---------------
$ds=ldap_connect("10.210.96.10", 389); 

Expected result:
----------------
return a handle

Actual result:
--------------
Fatal error: Call to undefined function ldap_connect() in D:\SVN\intra.leju.com\trunk\epm\login.php on line 15

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-26 09:06 UTC] pajoye@php.net
- Restart your webserver after each change in your php.ini
- be sure that you are editing the right php.ini, check with phpinfo()
- be sure that PHP is actually loading it as well, check with phpinfo()

It is not a bug but a configuration problem, please use one of our mailing lists to get support.
 [2008-09-26 13:20 UTC] cocowool at gmail dot com
I changed the right php.ini according to the php.ini
and restarted my webserver
i am not sure if it's a problem about the vista OS
is there anyone who use vista ultimate and config the php_ldap.dll
thank you very much
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Mar 12 10:01:31 2025 UTC