![](/img/trans.png)
[英]Fatal error: Call to undefined function ldap_connect() in ubuntu
[英]how do I get rid of the ldap_connect() error
Apache / 2.4.9(Win32)
PHP / 7.2.6(Win32)
錯誤1:致命錯誤:未捕獲的錯誤:調用未定義的函數ldap_connect()
我已經坐了一段時間了,但似乎沒有得到解決。 我似乎對這個錯誤沒有任何影響。 我似乎也找不到這些DLL文件的任何源。 我的猜測是DLL無法加載,因為它與7.2.6不兼容
我嘗試過的
0.)使用正確的php.ini文件在php.ini中啟用擴展名
1.)復制libeay32.dll,ssleay32.dll,php_ldap.dll,libsasl.dll到C:\\ Windows \\ system , \\ apache2.4.9 \\ bin
其他一切正常。 我可以運行phpinfo(),在那里還有其他一些站點可以正常運行。 我的錯誤日志文件如下:
[16-Jun-2018 20:17:30 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl.dll' (tried: d:/wamp/bin/php/php7.2.6/ext/php_curl.dll (The specified module could not be found.), d:/wamp/bin/php/php7.2.6/ext/php_php_curl.dll.dll (The specified module could not be found.)) in Unknown on line 0
[16-Jun-2018 20:17:30 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_ldap.dll' (tried: d:/wamp/bin/php/php7.2.6/ext/php_ldap.dll (The specified module could not be found.), d:/wamp/bin/php/php7.2.6/ext/php_php_ldap.dll.dll (The specified module could not be found.)) in Unknown on line 0
[16-Jun-2018 20:17:30 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_openssl.dll' (tried: d:/wamp/bin/php/php7.2.6/ext/php_openssl.dll (The specified module could not be found.), d:/wamp/bin/php/php7.2.6/ext/php_php_openssl.dll.dll (The specified module could not be found.)) in Unknown on line 0
[16-Jun-2018 20:17:30 UTC] PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
如何擺脫ldap錯誤?
我最終下載並安裝了新版本的WAMP,其中包括PHP 7.2.4。 然后,我啟用了extension = php_ldap.dll 。 我不需要復制任何其他文件
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.