PHP 7.1.0 Released

pg_connect_poll

(PHP 5 >= 5.6.0, PHP 7)

pg_connect_poll 正在进行尝试轮询 PostgreSQL 链接状态。

说明

int pg_connect_poll ([ resource $connection ] )

pg_connect_poll() 轮询使用 pg_connect() 创建的 PostgreSQL 链接状态,根据 PGSQL_CONNECT_ASYNC 选项

参数

connection

PostgreSQL 数据库链接资源

返回值

返回常量 PGSQL_POLLING_FAILED, PGSQL_POLLING_READING, PGSQL_POLLING_WRITING, PGSQL_POLLING_OK, 或者 PGSQL_POLLING_ACTIVE.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top