|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-06-29 10:33 UTC] post at rolandgruber dot de
Description: ------------ The function "ldap_exop_refresh" is not available as described in the documentation. See http://php.net/manual/en/function.ldap-exop-refresh.php. I get: Uncaught Error: Call to undefined function ldap_exop_refresh() Try the test script. It will output other LDAP exop functions but not the refresh one. According to documentation it should be available since 7.2.0 (I tried with 7.2.4). Please make it available and update the documentation with the correct version number. Test script: --------------- $functions = get_defined_functions(); foreach ($functions['internal'] as $function) { if (strpos($function, 'ldap_exop') !== false) { echo $function . "<br>"; } } Expected result: ---------------- ldap_exop_refresh can be used in code. Actual result: -------------- Uncaught Error: Call to undefined function ldap_exop_refresh() PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 09:00:02 2025 UTC |
True, I was in wrong branch. The code is not part of 7.2. So documentation error only. For anybody who faces the same issue here is a workaround for 7.2: $dn= 'cn=user,dc=test,dc=org'; $ttl = 3600; $data = ''; $data .= '80' . sprintf("%'.02x", strlen($dn)) . bin2hex($dn); $data .= '81' . sprintf("%'.02x", 4) . sprintf("%'.08x", $ttl); $data = hex2bin('30' . sprintf("%'.02x", strlen($data)/2) . $data); $success = @ldap_exop($ldapHandle, LDAP_EXOP_REFRESH, $data);