正在進行嘗試輪詢 PostgreSQL 鏈接狀態。

pg_connect_poll

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

pg_connect_poll 正在進行嘗試輪詢 PostgreSQL 鏈接狀態。

說明

pg_connect_poll(resource $connection = ?): int

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.

Leave a Reply

Your email address will not be published. Required fields are marked *