#2046 - PHP ERROR [64] Cannot redeclare ldap_escape() in sources/cns_ldap.php
0 guests and 0 members have recently viewed this.
The top 3 point earners from 21st Dec 2025 to 28th Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| Adam Edington |
|
|
There are no events at this time
PHP now defines its own ldap_escape function. This hotfix renames our function to avoid a naming conflict.
Seems php 5.6 has a built in function called ldap_escape, which was breaking the client authentication.
My workaround was to rename the function in the code.
All usage is confined to the source file cns_ldap.php. So I made a backup then edited the file and change all instances of:
ldap_escape
to
cns_ldap_escape
That Sorted out the issue and all is working fine.
Thanks for the files will update