PHP 8.3.4 Released!

pg_consume_input

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

pg_consume_input接続の入力を読み取る

説明

pg_consume_input(PgSql\Connection $connection): bool

pg_consume_input() は、データベースサーバーからの 読み取りを待っているすべての入力を消費します。

パラメータ

connection

PgSql\Connection クラスのインスタンス。

戻り値

エラーが発生しなかった場合 true、 エラーがあった場合 falsetrue が返されたからといって、入力が読み取り待機中であるとは限らないことに注意してください。

変更履歴

バージョン 説明
8.1.0 connection は、PgSql\Connection クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、リソース を期待していました。
add a note

User Contributed Notes

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