array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.pg-connect-poll.php', 1 => 'pg_connect_poll', ), 'up' => array ( 0 => 'ref.pgsql.php', 1 => 'PostgreSQL 関数', ), 'prev' => array ( 0 => 'function.pg-close.php', 1 => 'pg_close', ), 'next' => array ( 0 => 'function.pg-connect.php', 1 => 'pg_connect', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/pgsql/functions/pg-connect-poll.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
pg_connect_poll — 進行中の非同期接続のステータスをポーリングする
pg_connect_poll() は、
PGSQL_CONNECT_ASYNC
オプションを使用して
コールされた pg_connect() で作成された
PostgreSQL 接続のステータスをポーリングします。
connection
PgSql\Connection クラスのインスタンス。
PGSQL_POLLING_FAILED
、
PGSQL_POLLING_READING
、
PGSQL_POLLING_WRITING
、
PGSQL_POLLING_OK
、
または PGSQL_POLLING_ACTIVE
を返します。
バージョン | 説明 |
---|---|
8.1.0 |
connection は、PgSql\Connection クラスのインスタンスを期待するようになりました。
これより前のバージョンでは、リソース を期待していました。
|