Doc #76546 [Ver->Csd]: ldap_exop_refresh function not available in 7.2

From: Date: Mon, 16 Jul 2018 07:47:51 +0000
Subject: Doc #76546 [Ver->Csd]: ldap_exop_refresh function not available in 7.2
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15896@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76546&edit=1

 ID:                 76546
 Updated by:         mcmic@php.net
 Reported by:        post at rolandgruber dot de
 Summary:            ldap_exop_refresh function not available in 7.2
-Status:             Verified
+Status:             Closed
 Type:               Documentation Problem
 Package:            LDAP related
 Operating System:   Linux
 PHP Version:        7.2.7
 Assigned To:        mcmic
 Block user comment: N
 Private report:     N

 New Comment:

Fixed in documentation


Previous Comments:
------------------------------------------------------------------------
[2018-07-04 09:15:41] mcmic@php.net

@rolandgruber Documentation should be fixed in the next update.

Do not hesitate to add your work-around in a user note on the documentation page, it may be useful
to others.

------------------------------------------------------------------------
[2018-07-04 08:29:50] mcmic@php.net

Automatic comment from SVN on behalf of mcmic
Revision: http://svn.php.net/viewvc/?view=revision&revision=345267
Log: Fix php version information error for ldap_exop_refresh

issue #76546

------------------------------------------------------------------------
[2018-07-03 16:41:58] post at rolandgruber dot de

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);

------------------------------------------------------------------------
[2018-07-03 14:48:35] cmb@php.net

> […] or maybe I missed the deadline […]

That.  The respective commit was made on 2017-07-20, but feature
freeze was on 2017-07-18.

> The ldap.c file of 7.2.7 already contains the code for the
> refresh command.

While I can see the LDAP_EXOP_REFRESH constant, I can't find the
ldap_exop_refresh() function there.

------------------------------------------------------------------------
[2018-07-02 06:59:53] mcmic@php.net

I don’t know why it was not added in 7.2, it might have been a mistake, or maybe I missed the
deadline I can’t remember.

I’m not sure we can add a feature in a 7.2 minor release now.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=76546


--
Edit this bug report at https://bugs.php.net/bug.php?id=76546&edit=1


Thread (8 messages)

« previous php.doc.bugs (#15896) next »