mysqli_ssl_set

FunctionReturn type changed in PHP 8.2
PHP 5
PHP 7
PHP 8.0
Improved
PHP 8.1
PHP 8.2
Improved
PHP 8.3
PHP 8.4
PHP 8.5
PHP 8.6

mysqli_ssl_set Function synopsis

mysqli_ssl_set(
    mysqli $mysql,
    ?string $key,
    ?string $certificate,
    ?string $ca_certificate,
    ?string $ca_path,
    ?string $cipher_algos
  ): true

Parameters

$mysql

Typemysqli

$key

Type?string

$certificate

Type?string

$ca_certificate

Type?string

$ca_path

Type?string

$cipher_algos

Type?string

Return value

Typetrue

Changes to the mysqli_ssl_set Function

PHP 8.2

  • Return type changed: bool to true
  mysqli_ssl_set(
      mysqli $mysql,
      ?string $key,
      ?string $certificate,
      ?string $ca_certificate,
      ?string $ca_path,
      ?string $cipher_algos
-   ): bool
+   ): true

PHP 8.0

  • Return type added: bool
  • Parameter name of parameter #1 changed: $link to $mysql
  • Parameter type added for parameter #1 ($mysql): mysqli
  • Parameter type added for parameter #2 ($key): ?string
  • Parameter name of parameter #3 changed: $cert to $certificate
  • Parameter type added for parameter #3 ($certificate): ?string
  • Parameter name of parameter #4 changed: $certificate_authority to $ca_certificate
  • Parameter type added for parameter #4 ($ca_certificate): ?string
  • Parameter name of parameter #5 changed: $certificate_authority_path to $ca_path
  • Parameter type added for parameter #5 ($ca_path): ?string
  • Parameter name of parameter #6 changed: $cipher to $cipher_algos
  • Parameter type added for parameter #6 ($cipher_algos): ?string
  mysqli_ssl_set(
-     $link,
+     mysqli $mysql,
-     $key,
+     ?string $key,
-     $cert,
+     ?string $certificate,
-     $certificate_authority,
+     ?string $ca_certificate,
-     $certificate_authority_path,
+     ?string $ca_path,
-     $cipher
+     ?string $cipher_algos
-   )
+   ): bool

mysqli_ssl_set 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 Yes
PHP 7.1Unsupported Yes
PHP 7.0Unsupported Yes
PHP 5.6Unsupported Yes
PHP 5.5Unsupported Yes
PHP 5.4Unsupported Yes
PHP 5.3Unsupported Yes