LDAP_EXOP_REFRESH

FunctionParams changed in PHP 8.1

Refresh extended operation helper.

PHP 5
PHP 7.0-7.2
PHP 7.3
Added
PHP 7.4
PHP 8.0
Improved
PHP 8.1
Improved
PHP 8.2-8.3
PHP 8.4
PHP 8.5
PHP 8.6

ldap_exop_refresh Function synopsis

ldap_exop_refresh(
    LDAP\Connection $ldap,
    string $dn,
    int $ttl
  ): int|false

Parameters

$ldap

TypeLDAP\Connection

An LDAP\Connection instance, returned by ldap_connect.

$dn

Typestring

dn of the entry to refresh.

$ttl

Typeint

Time in seconds (between 1 and 31557600) that the client requests that the entry exists in the directory before being automatically removed.

Return value

Typeint|false

From RFC: The responseTtl field is the time in seconds which the server chooses to have as the time-to-live field for that entry. It must not be any smaller than that which the client requested, and it may be larger. However, to allow servers to maintain a relatively accurate directory, and to prevent clients from abusing the dynamic extensions, servers are permitted to shorten a client-requested time-to-live value, down to a minimum of 86400 seconds (one day).

false will be returned on error.

Changes to the LDAP_EXOP_REFRESH Function

PHP 8.1

  • Parameter type added for parameter #1 ($ldap): LDAP\Connection
  ldap_exop_refresh(
-     $ldap,
+     LDAP\Connection $ldap,
      string $dn,
      int $ttl
    ): int|false

PHP 8.0

  • Return type added: int|false
  • Parameter name of parameter #1 changed: $link to $ldap
  • Parameter type added for parameter #2 ($dn): string
  • Parameter type added for parameter #3 ($ttl): int
  ldap_exop_refresh(
-     $link,
+     $ldap,
-     $dn,
+     string $dn,
-     $ttl
+     int $ttl
-   )
+   ): int|false

PHP 7.3

  • Function added

LDAP_EXOP_REFRESH Function Availability

PHP VersionAvailability
PHP 8.6Upcoming Release Yes
PHP 8.5Supported (Latest) Yes
PHP 8.4Supported Yes
PHP 8.3Security-Fixes Only Yes
PHP 8.2Security-Fixes Only Yes
PHP 8.1Unsupported Yes
PHP 8.0Unsupported Yes
PHP 7.4Unsupported Yes
PHP 7.3Unsupported Yes
PHP 7.2Unsupported No
PHP 7.1Unsupported No
PHP 7.0Unsupported No
PHP 5.6Unsupported No
PHP 5.5Unsupported No
PHP 5.4Unsupported No
PHP 5.3Unsupported No