--TEST-- Non-finite timeout values in stream functions --FILE-- getMessage(), "\n"; } } fclose($socket); foreach ([NAN, -NAN, INF, -INF] as $value) { try { stream_socket_client("tcp://0.0.0.0:14781", timeout: $value); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } } ?> --EXPECT-- stream_socket_accept(): Argument #2 ($timeout) must be a finite value stream_socket_accept(): Argument #2 ($timeout) must be a finite value stream_socket_accept(): Argument #2 ($timeout) must be a finite value stream_socket_accept(): Argument #2 ($timeout) must be a finite value stream_socket_client(): Argument #4 ($timeout) must be a finite value stream_socket_client(): Argument #4 ($timeout) must be a finite value stream_socket_client(): Argument #4 ($timeout) must be a finite value stream_socket_client(): Argument #4 ($timeout) must be a finite value