mysqli_poll
Function • Params and return types changed in PHP 8.0
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$rejectare 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 NULLto?array - Parameter name of parameter #2 changed:
$writeto$error - Parameter type changed for parameter #2 (
$error):array or NULLto?array - Parameter name of parameter #3 changed:
$errorto$reject - Parameter type changed for parameter #3 (
$reject):array or NULLtoarray - Parameter name of parameter #4 changed:
$secto$seconds - Parameter type added for parameter #4 (
$seconds):int - Parameter name of parameter #5 changed:
$usecto$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
mysqli_poll 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 | Yes |