ldap_modify_batch
Function • Params changed in PHP 8.1
Batch and execute modifications on an LDAP entry.
ldap_modify_batch Function synopsis
ldap_modify_batch(
LDAP\Connection $ldap,
string $dn,
array $modifications_info,
?array $controls = null
): bool
Parameters
$ldap
TypeLDAP\Connection
An LDAP resource, returned by ldap_connect.
$dn
Typestring
The distinguished name of an LDAP entity.
$modifications_info
Typearray
An array that specifies the modifications to make. Each entry in this
array is an associative array with two or three keys:
attrib maps to the name of the attribute to modify,
modtype maps to the type of modification to perform,
and (depending on the type of modification) values
maps to an array of attribute values relevant to the modification.
$controls
OptionalType?arrayDefault valuenull
Array of LDAP Controls to send with the request.
Return value
Typebool
Returns true on success, false on failure
Changes to the ldap_modify_batch Function
PHP 8.1
- Parameter type added for parameter #1 (
$ldap):LDAP\Connection
ldap_modify_batch(
- $ldap,
+ LDAP\Connection $ldap,
string $dn,
array $modifications_info,
?array $controls = null
): bool PHP 8.0
- Return type added:
bool - Parameter name of parameter #1 changed:
$link_identifierto$ldap - Parameter type added for parameter #2 (
$dn):string - Parameter name of parameter #4 changed:
$servercontrolsto$controls - Parameter type added for parameter #4 (
$controls):?array - Parameter default value added for position #4 (
$controls):null
ldap_modify_batch(
- $link_identifier,
+ $ldap,
- $dn,
+ string $dn,
array $modifications_info,
- $servercontrols
+ ?array $controls = null
- )
+ ): bool PHP 7.3
- Optional parameter added - #4:
$servercontrols
ldap_modify_batch(
$link_identifier,
$dn,
- array $modifications_info
+ array $modifications_info,
+ $servercontrols
) PHP 5.4
- Function added
ldap_modify_batch Function Availability
ldap_modify_batch Function Availability| PHP Version | Availability |
|---|---|
| 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 | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | No |