Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 14, 2023

PHP 8.3 | NewFunctions: recognize ldap_connect_wallet() (RFC)

  • LDAP:
    . Added ldap_connect_wallet().

Note: the same (accepted) RFC which introduced this new function, also deprecates the signature of the ldap_connect() function with 3+ parameters, but that deprecation won't take effect until PHP 8.4.

I do have an adjustment to the (new) PHPCompatibility.ParameterValues.RemovedLdapConnectSignatures (PR #1620) sniff ready to handle this, but won't pull that update until the deprecation has been merged into PHP itself.

Refs:

PHP 8.3 | NewFunctions: recognize ldap_exop_sync() (RFC)

  • LDAP:
    . Added ldap_exop_sync().

Note: the same (accepted) RFC which introduced this new function, also deprecates the signature of the ldap_exop() function with 5/6 parameters, but that deprecation won't take effect until PHP 8.4.

Refs:

Related to #1589

jrfnl added 2 commits August 14, 2023 07:28
> - LDAP:
>   . Added ldap_connect_wallet().

Note: the same (accepted) RFC which introduced this new function, also deprecates the signature of the `ldap_connect()` function with 3+ parameters, but that deprecation won't take effect until PHP 8.4.

I do have an adjustment to the (new) `PHPCompatibility.ParameterValues.RemovedLdapConnectSignatures` sniff ready to handle this, but won't pull that update until the deprecation has been merged into PHP itself.

Refs:
* https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#ldap_connect
* https://github.com/php/php-src/blob/548fc6a8185625bf50c708a9337db01f14860ba1/UPGRADING#L343-L344
* php/php-src 11703
* php/php-src@72aada3
* https://www.php.net/ldap_connect

Related to 1589
> - LDAP:
>   . Added ldap_exop_sync().

Note: the same (accepted) RFC which introduced this new function, also deprecates the signature of the `ldap_exop()` function with 5/6 parameters, but that deprecation won't take effect until PHP 8.4.

Refs:
* https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#ldap_exop
* https://github.com/php/php-src/blob/548fc6a8185625bf50c708a9337db01f14860ba1/UPGRADING#L345
* php/php-src 11703
* php/php-src@b3bd55f
* https://www.php.net/ldap_exop

Related to 1589
@jrfnl jrfnl added Type: enhancement PR: quick merge PR only contains relatively simple changes PR: ready for review labels Aug 14, 2023
@jrfnl jrfnl added this to the 10.0.0 milestone Aug 14, 2023
@jrfnl jrfnl requested a review from wimg August 14, 2023 05:33
@wimg wimg merged commit d87b09e into develop Aug 17, 2023
@wimg wimg deleted the php-8.3/newfunctions-ldap-functions-to-replace-overloaded-sigs branch August 17, 2023 21:56
@github-actions github-actions bot removed PR: quick merge PR only contains relatively simple changes PR: ready for review labels Aug 17, 2023
@jrfnl jrfnl added the PHP: 8.3 label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants