mysqli_poll

FunctionParams and return types changed in PHP 8.0
PHP 5
PHP 7
PHP 8.0
Improved
PHP 8.1
PHP 8.2-8.3
PHP 8.4
PHP 8.5
PHP 8.6

mysqli_poll Function synopsis

mysqli_poll(
    ?array &$read,
    ?array &$error,
    array &$reject,
    int $seconds,
    int $microseconds = 0
  ): int|false

Parameters

$read

Passed by referenceType?array

$error

Passed by referenceType?array

$reject

Passed by referenceTypearray

$seconds

Typeint

$microseconds

OptionalTypeintDefault value0

Note that the parameters $read, $error, and $reject are passed by reference, and contain additional/updated context data that may be useful.

Return value

Typeint|false

Changes to the mysqli_poll Function

PHP 8.0

  • Return type added: int|false
  • Parameter type changed for parameter #1 ($read): array or NULL to ?array
  • Parameter name of parameter #2 changed: $write to $error
  • Parameter type changed for parameter #2 ($error): array or NULL to ?array
  • Parameter name of parameter #3 changed: $error to $reject
  • Parameter type changed for parameter #3 ($reject): array or NULL to array
  • Parameter name of parameter #4 changed: $sec to $seconds
  • Parameter type added for parameter #4 ($seconds): int
  • Parameter name of parameter #5 changed: $usec to $microseconds
  • Parameter type added for parameter #5 ($microseconds): int
  • Parameter default value added for position #5 ($microseconds): 0
  mysqli_poll(
-     array or NULL &$read,
+     ?array &$read,
-     array or NULL &$write,
+     ?array &$error,
-     array or NULL &$error,
+     array &$reject,
-     $sec,
+     int $seconds,
-     $usec
+     int $microseconds = 0
-   )
+   ): int|false

mysqli_poll 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