minor #32447 [LDAP] add new option implemented in php 7.1 (Simperfit)

This PR was merged into the 4.4 branch.

Discussion
----------

[LDAP] add new option implemented in php 7.1

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets |  #18448  <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | none <!-- required for new features -->

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

Add new options to the LDAP connection class.

Commits
-------

d1a0ca6b9a [LDAP] add new option implemented in php 7.1
This commit is contained in:
Fabien Potencier 2019-07-12 07:55:23 +03:00
commit aefb8bdb26

View File

@ -40,10 +40,27 @@ final class ConnectionOptions
const DEBUG_LEVEL = 0x5001;
const TIMEOUT = 0x5002;
const NETWORK_TIMEOUT = 0x5005;
const X_TLS_CACERTDIR = 0x6003;
const X_TLS_CERTFILE = 0x6004;
const X_TLS_CRL_ALL = 0x02;
const X_TLS_CRL_NONE = 0x00;
const X_TLS_CRL_PEER = 0x01;
const X_TLS_KEYFILE = 0x6005;
const X_TLS_REQUIRE_CERT = 0x6006;
const X_TLS_PROTOCOL_MIN = 0x6007;
const X_TLS_CIPHER_SUITE = 0x6008;
const X_TLS_RANDOM_FILE = 0x6009;
const X_TLS_CRLFILE = 0x6010;
const X_TLS_PACKAGE = 0x6011;
const X_TLS_CRLCHECK = 0x600b;
const X_TLS_DHFILE = 0x600e;
const X_SASL_MECH = 0x6100;
const X_SASL_REALM = 0x6101;
const X_SASL_AUTHCID = 0x6102;
const X_SASL_AUTHZID = 0x6103;
const X_KEEPALIVE_IDLE = 0x6300;
const X_KEEPALIVE_PROBES = 0x6301;
const X_KEEPALIVE_INTERVAL = 0x6302;
public static function getOptionName($name)
{