php8.5
Home/ Manual/ pgsql / functions/ pg_connect_poll

pg_connect_poll

PHP function Edit on GitHub ✎

(PHP 5 >= 5.6.0, PHP 7, PHP 8)

Poll the status of an in-progress asynchronous PostgreSQL connection attempt

Description

pg_connect_poll(PgSql\Connection $connection): int

pg_connect_poll() polls the status of a PostgreSQL connection created by calling pg_connect() with the PGSQL_CONNECT_ASYNC option.

Parameters

connection

Connection

Return Values

Returns PGSQL_POLLING_FAILED, PGSQL_POLLING_READING, PGSQL_POLLING_WRITING, PGSQL_POLLING_OK, or PGSQL_POLLING_ACTIVE.

Changelog

VersionDescription

Source: reference/pgsql/functions/pg-connect-poll.xml · from the official PHP manual (php/doc-en)